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/functions.js | |
parent | 9299102f4350d7bac0fca64e55c673980696889f (diff) |
implement filter testing
Diffstat (limited to 'js/functions.js')
-rw-r--r-- | js/functions.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/js/functions.js b/js/functions.js index 313cbe5c9..02aeb454f 100644 --- a/js/functions.js +++ b/js/functions.js @@ -1111,6 +1111,20 @@ function quickAddFilter() { id: "filterEditDlg", title: __("Create Filter"), style: "width: 600px", + test: function() { + var query = "backend.php?" + dojo.formToQuery("filter_new_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; |