From 5593784a2c64a910425d2064575ee575721dad53 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 18 Apr 2011 00:01:24 +0400 Subject: implement test button in filter dialogs --- functions.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'functions.js') diff --git a/functions.js b/functions.js index 3b18b0072..ee92674eb 100644 --- a/functions.js +++ b/functions.js @@ -969,6 +969,24 @@ function quickAddFilter() { id: "filterEditDlg", title: __("Create Filter"), style: "width: 600px", + 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()) { -- cgit v1.2.3-54-g00ecf