summaryrefslogtreecommitdiff
path: root/js/PrefFilterTree.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-12-02 20:56:30 +0300
committerAndrew Dolgov <[email protected]>2018-12-02 20:56:30 +0300
commit526389b2d380177490605037fdc3a24ebc688fac (patch)
tree65d79cebf0811e8927efeffac9f1e11b4552a63f /js/PrefFilterTree.js
parent495248dd9783985750591c050d055ac4c2cf1712 (diff)
update notify_* calls to use Notify
Diffstat (limited to 'js/PrefFilterTree.js')
-rw-r--r--js/PrefFilterTree.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/js/PrefFilterTree.js b/js/PrefFilterTree.js
index 6823fa8ad..4f4e02d95 100644
--- a/js/PrefFilterTree.js
+++ b/js/PrefFilterTree.js
@@ -93,11 +93,11 @@ define(["dojo/_base/declare", "dojo/dom-construct", "lib/CheckBoxTree"], functio
xhrPost("backend.php", { op: "pref-filters", search: search }, (transport) => {
dijit.byId('filterConfigTab').attr('content', transport.responseText);
- notify("");
+ Notify.close();
});
},
resetFilterOrder: function() {
- notify_progress("Loading, please wait...");
+ Notify.progress("Loading, please wait...");
xhrPost("backend.php", {op: "pref-filters", method: "filtersortreset"}, () => {
this.reload();
@@ -112,7 +112,7 @@ define(["dojo/_base/declare", "dojo/dom-construct", "lib/CheckBoxTree"], functio
}
if (confirm(__("Combine selected filters?"))) {
- notify_progress("Joining filters...");
+ Notify.progress("Joining filters...");
xhrPost("backend.php", {op: "pref-filters", method: "join", ids: rows.toString()}, () => {
this.reload();
@@ -132,7 +132,7 @@ define(["dojo/_base/declare", "dojo/dom-construct", "lib/CheckBoxTree"], functio
return;
}
- notify("");
+ Notify.close();
this.editFilter(rows[0]);
},
@@ -192,7 +192,7 @@ define(["dojo/_base/declare", "dojo/dom-construct", "lib/CheckBoxTree"], functio
if (confirm(msg)) {
this.hide();
- notify_progress("Removing filter...");
+ Notify.progress("Removing filter...");
const query = {op: "pref-filters", method: "remove", ids: this.attr('value').id};
@@ -220,7 +220,7 @@ define(["dojo/_base/declare", "dojo/dom-construct", "lib/CheckBoxTree"], functio
execute: function () {
if (this.validate()) {
- notify_progress("Saving data...", true);
+ Notify.progress("Saving data...", true);
xhrPost("backend.php", dojo.formToObject("filter_edit_form"), () => {
dialog.hide();
@@ -238,7 +238,7 @@ define(["dojo/_base/declare", "dojo/dom-construct", "lib/CheckBoxTree"], functio
if (sel_rows.length > 0) {
if (confirm(__("Remove selected filters?"))) {
- notify_progress("Removing selected filters...");
+ Notify.progress("Removing selected filters...");
const query = {
op: "pref-filters", method: "remove",