diff options
author | Andrew Dolgov <[email protected]> | 2021-02-12 10:35:13 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-02-12 10:35:13 +0300 |
commit | bf6d0f28173ca38968e5a23b86758d1dce133e1d (patch) | |
tree | 3daef1f2edb3a320a56eac6a48d3dc08c885b010 /js/CommonFilters.js | |
parent | 72e38bfe1faa57ec15068c5ac0e53a0d7a4dc8cf (diff) |
various dialog-related fixes; stop referring to many dialogs by name; move filter test initial dialog to client side
Diffstat (limited to 'js/CommonFilters.js')
-rw-r--r-- | js/CommonFilters.js | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/js/CommonFilters.js b/js/CommonFilters.js index 27bf78a02..61e6b2f95 100644 --- a/js/CommonFilters.js +++ b/js/CommonFilters.js @@ -248,10 +248,21 @@ const Filters = { }); }, - href: "backend.php?op=pref-filters&method=testFilterDlg" + content: ` + <div> + <img id='prefFilterLoadingIndicator' src='images/indicator_tiny.gif'> + <span id='prefFilterProgressMsg'>Looking for articles...</span> + </div> + + <ul class='panel panel-scrollable list list-unstyled' id='prefFilterTestResultList'></ul> + + <footer class='text-center'> + <button dojoType='dijit.form.Button' onclick="dijit.byId('filterTestDlg').hide()"><?php echo __('Close this window') ?></button> + </footer> + ` }); - dojo.connect(test_dlg, "onLoad", null, function (/* e */) { + dojo.connect(test_dlg, "onShow", null, function (/* e */) { test_dlg.getTestResults(params, 0); }); |