From 4e02f58294c2b26a3edd6e52dd0e297eeeb2e538 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 3 Sep 2012 15:05:43 +0400 Subject: implement filter testing --- js/functions.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'js/functions.js') 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; -- cgit v1.2.3-54-g00ecf