summaryrefslogtreecommitdiff
path: root/js/Feeds.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/Feeds.js')
-rw-r--r--js/Feeds.js19
1 files changed, 6 insertions, 13 deletions
diff --git a/js/Feeds.js b/js/Feeds.js
index 27586ab13..714eb77d2 100644
--- a/js/Feeds.js
+++ b/js/Feeds.js
@@ -278,21 +278,14 @@ const Feeds = {
}
if (App.getInitParam("safe_mode")) {
- const dialog = new fox.SingleUseDialog({
- title: __("Safe mode"),
- content: `<div class='alert alert-info'>
- ${__('Tiny Tiny RSS is running in safe mode. All themes and plugins are disabled. You will need to log out and back in to disable it.')}
- </div>
- <footer class='text-center'>
- <button dojoType='dijit.form.Button' type='submit' class='alt-primary'>
- ${__('Close this window')}
- </button>
- </footer>`
- });
-
- dialog.show();
+ /* global CommonDialogs */
+ CommonDialogs.safeModeWarning();
}
+ dojo.connect(dijit.byId("main-catchup-dropdown"), 'onItemClick',
+ (item) => Feeds.catchupCurrent(item.option.value)
+ );
+
// bw_limit disables timeout() so we request initial counters separately
if (App.getInitParam("bw_limit")) {
this.requestCounters();