]>
git.wh0rd.org - tt-rss.git/blob - plugins/note/note.js
1 function editArticleNote(id
) {
4 var query
= "backend.php?op=pluginhandler&plugin=note&method=edit¶m=" + param_escape(id
);
6 if (dijit
.byId("editNoteDlg"))
7 dijit
.byId("editNoteDlg").destroyRecursive();
9 dialog
= new dijit
.Dialog({
11 title
: __("Edit article note"),
12 style
: "width: 600px",
14 if (this.validate()) {
15 var query
= dojo
.objectToQuery(this.attr('value'));
17 notify_progress("Saving article note...", true);
19 new Ajax
.Request("backend.php", {
21 onComplete: function(transport
) {
25 var reply
= JSON
.parse(transport
.responseText
);
27 cache_delete("article:" + id
);
29 var elem
= $("POSTNOTE-" + id
);
33 elem
.innerHTML
= reply
.note
;
35 if (reply
.raw_length
!= 0)
36 new Effect
.Appear(elem
);
48 exception_error("editArticleNote", e
);