properly validate feed editor dialog

This commit is contained in:
Andrew Dolgov 2021-02-19 06:51:15 +03:00
parent d57e7eaa98
commit dcfea9baac
2 changed files with 3 additions and 1 deletions

View File

@ -803,7 +803,7 @@ class Pref_Feeds extends Handler_Protected {
<button style='float : left' class='alt-danger' dojoType='dijit.form.Button' <button style='float : left' class='alt-danger' dojoType='dijit.form.Button'
onclick='App.dialogOf(this).unsubscribeFeed($feed_id, \"$title\")'>". onclick='App.dialogOf(this).unsubscribeFeed($feed_id, \"$title\")'>".
__('Unsubscribe')."</button> __('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> <button dojoType='dijit.form.Button' onclick='App.dialogOf(this).hide()'>".__('Cancel')."</button>
</footer>"; </footer>";
} }

View File

@ -425,7 +425,9 @@ const CommonDialogs = {
Feeds.reload(); Feeds.reload();
}); });
return true;
} }
return false;
}, },
content: __("Loading, please wait...") content: __("Loading, please wait...")
}); });