]>
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 notify_progress("Saving article note...", true);
17 xhrJson("backend.php", this.attr('value'), (reply
) => {
22 cache_delete("article:" + id
);
24 var elem
= $("POSTNOTE-" + id
);
28 elem
.innerHTML
= reply
.note
;
30 if (reply
.raw_length
!= 0)
31 new Effect
.Appear(elem
);
43 exception_error("editArticleNote", e
);