summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-19 06:51:15 +0300
committerAndrew Dolgov <[email protected]>2021-02-19 06:51:15 +0300
commitdcfea9baacc41984f683342e6a3e4949243b7324 (patch)
tree090e03f910c85a517a42f5c5506dfea6774f2e21
parentd57e7eaa98b8669837d6ccb98d6f7d0d739f52e8 (diff)
properly validate feed editor dialog
-rwxr-xr-xclasses/pref/feeds.php2
-rw-r--r--js/CommonDialogs.js2
2 files changed, 3 insertions, 1 deletions
diff --git a/classes/pref/feeds.php b/classes/pref/feeds.php
index 3d633a378..761a0a087 100755
--- a/classes/pref/feeds.php
+++ b/classes/pref/feeds.php
@@ -803,7 +803,7 @@ class Pref_Feeds extends Handler_Protected {
<button style='float : left' class='alt-danger' dojoType='dijit.form.Button'
onclick='App.dialogOf(this).unsubscribeFeed($feed_id, \"$title\")'>".
__('Unsubscribe')."</button>
- <button dojoType='dijit.form.Button' class='alt-primary' type='submit'>".__('Save')."</button>
+ <button dojoType='dijit.form.Button' class='alt-primary' onclick='return App.dialogOf(this).execute()' type='submit'>".__('Save')."</button>
<button dojoType='dijit.form.Button' onclick='App.dialogOf(this).hide()'>".__('Cancel')."</button>
</footer>";
}
diff --git a/js/CommonDialogs.js b/js/CommonDialogs.js
index 40313d34f..c62e6893e 100644
--- a/js/CommonDialogs.js
+++ b/js/CommonDialogs.js
@@ -425,7 +425,9 @@ const CommonDialogs = {
Feeds.reload();
});
+ return true;
}
+ return false;
},
content: __("Loading, please wait...")
});