summaryrefslogtreecommitdiff
path: root/prefs.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2011-04-18 00:01:24 +0400
committerAndrew Dolgov <[email protected]>2011-04-18 00:01:24 +0400
commit5593784a2c64a910425d2064575ee575721dad53 (patch)
tree95333edd031aec227c619b2dea7a26531ddd28b8 /prefs.js
parent50aa64b3c4b1ef5a9b90e3f1a09b8e4c92140d16 (diff)
implement test button in filter dialogs
Diffstat (limited to 'prefs.js')
-rw-r--r--prefs.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/prefs.js b/prefs.js
index 05052093d..2a054df53 100644
--- a/prefs.js
+++ b/prefs.js
@@ -180,7 +180,24 @@ function editFilter(id) {
} });
}
},
+ test: function() {
+ if (this.validate()) {
+
+ if (dijit.byId("filterTestDlg"))
+ dijit.byId("filterTestDlg").destroyRecursive();
+
+ tdialog = new dijit.Dialog({
+ id: "filterTestDlg",
+ title: __("Filter Test Results"),
+ style: "width: 600px",
+ href: "backend.php?savemode=test&" +
+ dojo.objectToQuery(dialog.attr('value')),
+ });
+ tdialog.show();
+
+ }
+ },
execute: function() {
if (this.validate()) {