summaryrefslogtreecommitdiff
path: root/js/CommonDialogs.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-16 14:13:38 +0300
committerAndrew Dolgov <[email protected]>2021-02-16 14:13:38 +0300
commit3887665bcbed344606f9630cd45316d56ce86203 (patch)
tree3b03b8cefa10e05bcc6d1a47936c19dc5836bf0e /js/CommonDialogs.js
parentcca84aedfdde10c4361505a94ab3eae5d60b56fa (diff)
CommonDialogs.addLabel: remove long unused parameters
Diffstat (limited to 'js/CommonDialogs.js')
-rw-r--r--js/CommonDialogs.js11
1 files changed, 3 insertions, 8 deletions
diff --git a/js/CommonDialogs.js b/js/CommonDialogs.js
index 492467b7f..c16afed82 100644
--- a/js/CommonDialogs.js
+++ b/js/CommonDialogs.js
@@ -352,22 +352,17 @@ const CommonDialogs = {
dialog.show();
})
},
- addLabel: function(select, callback) {
+ addLabel: function() {
const caption = prompt(__("Please enter label caption:"), "");
if (caption != undefined && caption.trim().length > 0) {
const query = {op: "pref-labels", method: "add", caption: caption.trim()};
- if (select)
- Object.extend(query, {output: "select"});
-
Notify.progress("Loading, please wait...", true);
- xhrPost("backend.php", query, (transport) => {
- if (callback) {
- callback(transport);
- } else if (App.isPrefs()) {
+ xhrPost("backend.php", query, () => {
+ if (dijit.byId("labelTree")) {
dijit.byId("labelTree").reload();
} else {
Feeds.reload();