summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-14 15:38:45 +0300
committerAndrew Dolgov <[email protected]>2021-02-14 15:38:45 +0300
commit0fbf10991237b3f91ee5c77349637d7197a22bdc (patch)
tree10cda105af0e64ed39adfcd7c806e2d57543154c /js
parenta8cc43a0ff1cf6297577fae8536408287518baf4 (diff)
* remove users/filters toolbar edit button (just click on it)
* fix title of edit filter dialog always showing create filter
Diffstat (limited to 'js')
-rw-r--r--js/CommonFilters.js2
-rw-r--r--js/PrefFilterTree.js17
-rw-r--r--js/PrefUsers.js15
3 files changed, 1 insertions, 33 deletions
diff --git a/js/CommonFilters.js b/js/CommonFilters.js
index 15403b8c4..06e0410c7 100644
--- a/js/CommonFilters.js
+++ b/js/CommonFilters.js
@@ -243,7 +243,7 @@ const Filters = {
try {
const dialog = new fox.SingleUseDialog({
id: "filterEditDlg",
- title: __("Create Filter"),
+ title: id ? __("Edit Filter") : __("Create Filter"),
test: function () {
Filters.test(this.attr('value'));
},
diff --git a/js/PrefFilterTree.js b/js/PrefFilterTree.js
index abfdbb3b0..e7d4efdc1 100644
--- a/js/PrefFilterTree.js
+++ b/js/PrefFilterTree.js
@@ -119,23 +119,6 @@ define(["dojo/_base/declare", "dojo/dom-construct", "lib/CheckBoxTree"], functio
});
}
},
- editSelectedFilter: function() {
- const rows = this.getSelectedFilters();
-
- if (rows.length == 0) {
- alert(__("No filters selected."));
- return;
- }
-
- if (rows.length > 1) {
- alert(__("Please select only one filter."));
- return;
- }
-
- Notify.close();
-
- this.editFilter(rows[0]);
- },
removeSelectedFilters: function() {
const sel_rows = this.getSelectedFilters();
diff --git a/js/PrefUsers.js b/js/PrefUsers.js
index 0a7e635fe..e5c281811 100644
--- a/js/PrefUsers.js
+++ b/js/PrefUsers.js
@@ -93,21 +93,6 @@ const Users = {
alert(__("No users selected."));
}
},
- editSelected: function() {
- const rows = this.getSelection();
-
- if (rows.length == 0) {
- alert(__("No users selected."));
- return;
- }
-
- if (rows.length > 1) {
- alert(__("Please select one user."));
- return;
- }
-
- this.edit(rows[0]);
- },
getSelection :function() {
return Tables.getSelected("users-list");
}