|
|
@ -257,15 +257,16 @@ const Article = {
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
editTags: function (id) {
|
|
|
|
editTags: function (id) {
|
|
|
|
const query = "backend.php?op=article&method=editArticleTags¶m=" + encodeURIComponent(id);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (dijit.byId("editTagsDlg"))
|
|
|
|
if (dijit.byId("editTagsDlg"))
|
|
|
|
dijit.byId("editTagsDlg").destroyRecursive();
|
|
|
|
dijit.byId("editTagsDlg").destroyRecursive();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
xhrPost("backend.php", {op: "article", method: "editarticletags", param: id}, (transport) => {
|
|
|
|
|
|
|
|
|
|
|
|
const dialog = new dijit.Dialog({
|
|
|
|
const dialog = new dijit.Dialog({
|
|
|
|
id: "editTagsDlg",
|
|
|
|
id: "editTagsDlg",
|
|
|
|
title: __("Edit article Tags"),
|
|
|
|
title: __("Edit article Tags"),
|
|
|
|
style: "width: 600px",
|
|
|
|
style: "width: 600px",
|
|
|
|
|
|
|
|
content: transport.responseText,
|
|
|
|
execute: function () {
|
|
|
|
execute: function () {
|
|
|
|
if (this.validate()) {
|
|
|
|
if (this.validate()) {
|
|
|
|
Notify.progress("Saving article tags...", true);
|
|
|
|
Notify.progress("Saving article tags...", true);
|
|
|
@ -292,7 +293,6 @@ const Article = {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
href: query
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
const tmph = dojo.connect(dialog, 'onLoad', function () {
|
|
|
|
const tmph = dojo.connect(dialog, 'onLoad', function () {
|
|
|
@ -304,6 +304,9 @@ const Article = {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
dialog.show();
|
|
|
|
dialog.show();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
cdmMoveToId: function (id, params) {
|
|
|
|
cdmMoveToId: function (id, params) {
|
|
|
|
params = params || {};
|
|
|
|
params = params || {};
|
|
|
|