|
|
@ -1,5 +1,6 @@
|
|
|
|
'use strict'
|
|
|
|
'use strict'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* eslint-disable no-new */
|
|
|
|
/* global __, ngettext, App, Headlines, xhrPost, xhrJson, dojo, dijit, PluginHost, Notify, $$, Ajax, fox */
|
|
|
|
/* global __, ngettext, App, Headlines, xhrPost, xhrJson, dojo, dijit, PluginHost, Notify, $$, Ajax, fox */
|
|
|
|
|
|
|
|
|
|
|
|
const Article = {
|
|
|
|
const Article = {
|
|
|
@ -250,12 +251,10 @@ const Article = {
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
editTags: function (id) {
|
|
|
|
editTags: function (id) {
|
|
|
|
xhrPost("backend.php", {op: "article", method: "editarticletags", param: id}, (transport) => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const dialog = new fox.SingleUseDialog({
|
|
|
|
const dialog = new fox.SingleUseDialog({
|
|
|
|
id: "editTagsDlg",
|
|
|
|
id: "editTagsDlg",
|
|
|
|
title: __("Edit article Tags"),
|
|
|
|
title: __("Edit article Tags"),
|
|
|
|
content: transport.responseText,
|
|
|
|
content: __("Loading, please wait..."),
|
|
|
|
execute: function () {
|
|
|
|
execute: function () {
|
|
|
|
if (this.validate()) {
|
|
|
|
if (this.validate()) {
|
|
|
|
Notify.progress("Saving article tags...", true);
|
|
|
|
Notify.progress("Saving article tags...", true);
|
|
|
@ -287,15 +286,17 @@ const Article = {
|
|
|
|
const tmph = dojo.connect(dialog, 'onShow', function () {
|
|
|
|
const tmph = dojo.connect(dialog, 'onShow', function () {
|
|
|
|
dojo.disconnect(tmph);
|
|
|
|
dojo.disconnect(tmph);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
xhrPost("backend.php", {op: "article", method: "editarticletags", param: id}, (transport) => {
|
|
|
|
|
|
|
|
dialog.attr('content', transport.responseText);
|
|
|
|
|
|
|
|
|
|
|
|
new Ajax.Autocompleter('tags_str', 'tags_choices',
|
|
|
|
new Ajax.Autocompleter('tags_str', 'tags_choices',
|
|
|
|
"backend.php?op=article&method=completeTags",
|
|
|
|
"backend.php?op=article&method=completeTags",
|
|
|
|
{tokens: ',', paramName: "search"});
|
|
|
|
{tokens: ',', paramName: "search"});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
dialog.show();
|
|
|
|
dialog.show();
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
cdmMoveToId: function (id, params) {
|
|
|
|
cdmMoveToId: function (id, params) {
|
|
|
|
params = params || {};
|
|
|
|
params = params || {};
|
|
|
|