summaryrefslogtreecommitdiff
path: root/js/PrefLabelTree.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-12-02 16:29:00 +0300
committerAndrew Dolgov <[email protected]>2018-12-02 16:29:00 +0300
commit3a6dae92034791c199f9ddb4c60b8298b22c1d47 (patch)
tree2f25f3d336437ca42e7020067dbf7fccc588894d /js/PrefLabelTree.js
parentb9869dbc01f505e87def7463e032914cab49f26c (diff)
prefs: more of the same, really
Diffstat (limited to 'js/PrefLabelTree.js')
-rw-r--r--js/PrefLabelTree.js14
1 files changed, 10 insertions, 4 deletions
diff --git a/js/PrefLabelTree.js b/js/PrefLabelTree.js
index ba052eb07..45edb34a1 100644
--- a/js/PrefLabelTree.js
+++ b/js/PrefLabelTree.js
@@ -48,6 +48,12 @@ define(["dojo/_base/declare", "dojo/dom-construct", "lib/CheckBoxTree", "dijit/f
return rv;
},
+ reload: function() {
+ xhrPost("backend.php", { op: "pref-labels" }, (transport) => {
+ dijit.byId('labelConfigTab').attr('content', transport.responseText);
+ notify("");
+ });
+ },
editLabel: function(id) {
const query = "backend.php?op=pref-labels&method=edit&id=" +
param_escape(id);
@@ -87,7 +93,7 @@ define(["dojo/_base/declare", "dojo/dom-construct", "lib/CheckBoxTree", "dijit/f
};
xhrPost("backend.php", query, () => {
- updateFilterList(); // maybe there's labels in there
+ dijit.byId("filterTree").reload(); // maybe there's labels in there
});
},
@@ -102,7 +108,7 @@ define(["dojo/_base/declare", "dojo/dom-construct", "lib/CheckBoxTree", "dijit/f
this.hide();
xhrPost("backend.php", this.attr('value'), () => {
- updateFilterList(); // maybe there's labels in there
+ dijit.byId("filterTree").reload(); // maybe there's labels in there
});
}
},
@@ -123,7 +129,7 @@ define(["dojo/_base/declare", "dojo/dom-construct", "lib/CheckBoxTree", "dijit/f
};
xhrPost("backend.php", query, () => {
- updateLabelList();
+ this.reload();
});
}
@@ -144,7 +150,7 @@ define(["dojo/_base/declare", "dojo/dom-construct", "lib/CheckBoxTree", "dijit/f
};
xhrPost("backend.php", query, () => {
- updateLabelList();
+ this.reload();
});
}
} else {