From 72e38bfe1faa57ec15068c5ac0e53a0d7a4dc8cf Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 12 Feb 2021 09:56:27 +0300 Subject: [PATCH] rework a few more dialogs to use App.dialogOf() --- classes/article.php | 2 +- classes/backend.php | 3 +-- classes/feeds.php | 11 ++++++----- classes/pref/feeds.php | 9 ++++----- js/Feeds.js | 5 ++--- 5 files changed, 14 insertions(+), 16 deletions(-) diff --git a/classes/article.php b/classes/article.php index 305764ed3..6d3746968 100755 --- a/classes/article.php +++ b/classes/article.php @@ -184,7 +184,7 @@ class Article extends Handler_Protected { print " "; print ""; + onclick='App.dialogOf(this).hide()'>".__('Cancel').""; print ""; } diff --git a/classes/backend.php b/classes/backend.php index 6e0fa191e..aa1935f23 100644 --- a/classes/backend.php +++ b/classes/backend.php @@ -83,8 +83,7 @@ class Backend extends Handler_Protected { } print ""; } diff --git a/classes/feeds.php b/classes/feeds.php index e8c3bcf2c..d995b4be1 100755 --- a/classes/feeds.php +++ b/classes/feeds.php @@ -730,9 +730,9 @@ class Feeds extends Handler_Protected { print ""; print ""; @@ -744,7 +744,7 @@ class Feeds extends Handler_Protected { $active_feed_id = sprintf("%d", $this->params[0]); $is_cat = $this->params[1] != "false"; - print "
"; + print ""; print "
"; @@ -772,8 +772,9 @@ class Feeds extends Handler_Protected { help ".__("Search syntax").""; } - print " - "; + print " + "; print ""; diff --git a/classes/pref/feeds.php b/classes/pref/feeds.php index 5fcafeaae..06e0e4c3d 100755 --- a/classes/pref/feeds.php +++ b/classes/pref/feeds.php @@ -809,8 +809,8 @@ class Pref_Feeds extends Handler_Protected { print "
- - + +
"; } } @@ -972,11 +972,10 @@ class Pref_Feeds extends Handler_Protected { print "
"; print ""; diff --git a/js/Feeds.js b/js/Feeds.js index 10677f641..45b8193e4 100644 --- a/js/Feeds.js +++ b/js/Feeds.js @@ -594,13 +594,12 @@ const Feeds = { return tree.model.store.getValue(nuf, 'bare_id'); }, search: function() { - if (dijit.byId("searchDlg")) - dijit.byId("searchDlg").destroyRecursive(); - xhrPost("backend.php", {op: "feeds", method: "search", param: Feeds.getActive() + ":" + Feeds.activeIsCat()}, (transport) => { + if (dijit.byId("searchDlg")) + dijit.byId("searchDlg").destroyRecursive(); const dialog = new dijit.Dialog({ id: "searchDlg",