diff options
author | Andrew Dolgov <[email protected]> | 2012-09-03 15:05:43 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2012-09-03 15:05:43 +0400 |
commit | 4e02f58294c2b26a3edd6e52dd0e297eeeb2e538 (patch) | |
tree | 35b123694f32a071c298f4c15ad9f9dfcd037aed /js/prefs.js | |
parent | 9299102f4350d7bac0fca64e55c673980696889f (diff) |
implement filter testing
Diffstat (limited to 'js/prefs.js')
-rw-r--r-- | js/prefs.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/js/prefs.js b/js/prefs.js index 72d253a95..d23d4a68b 100644 --- a/js/prefs.js +++ b/js/prefs.js @@ -136,6 +136,20 @@ function editFilter(id) { id: "filterEditDlg", title: __("Edit Filter"), style: "width: 600px", + test: function() { + var query = "backend.php?" + dojo.formToQuery("filter_edit_form") + "&savemode=test"; + + if (dijit.byId("filterTestDlg")) + dijit.byId("filterTestDlg").destroyRecursive(); + + var test_dlg = new dijit.Dialog({ + id: "filterTestDlg", + title: "Test Filter", + style: "width: 600px", + href: query}); + + test_dlg.show(); + }, selectRules: function(select) { $$("#filterDlg_Matches input[type=checkbox]").each(function(e) { e.checked = select; |