diff options
Diffstat (limited to 'js')
-rw-r--r-- | js/Article.js | 2 | ||||
-rw-r--r-- | js/ArticleCache.js | 2 | ||||
-rw-r--r-- | js/CommonDialogs.js | 2 | ||||
-rw-r--r-- | js/CommonFilters.js | 2 | ||||
-rw-r--r-- | js/Feeds.js | 2 | ||||
-rwxr-xr-x | js/Headlines.js | 4 | ||||
-rw-r--r-- | js/PluginHost.js | 4 | ||||
-rw-r--r-- | js/PrefUsers.js | 2 | ||||
-rw-r--r-- | js/Utils.js | 8 | ||||
-rwxr-xr-x | js/common.js (renamed from js/functions.js) | 1 | ||||
-rwxr-xr-x | js/prefs.js | 1 | ||||
-rw-r--r-- | js/tt-rss.js | 1 |
12 files changed, 21 insertions, 10 deletions
diff --git a/js/Article.js b/js/Article.js index 89bb3b3af..0e1318948 100644 --- a/js/Article.js +++ b/js/Article.js @@ -1,3 +1,5 @@ +'use strict' +/* global __, ngettext */ define(["dojo/_base/declare"], function (declare) { return declare("fox.Article", null, { _active_article_id: 0, diff --git a/js/ArticleCache.js b/js/ArticleCache.js index fbba1f679..a4e8e091f 100644 --- a/js/ArticleCache.js +++ b/js/ArticleCache.js @@ -1,3 +1,5 @@ +'use strict' +/* global __, ngettext */ define(["dojo/_base/declare"], function (declare) { return declare("fox.ArticleCache", null, { has_storage: 'sessionStorage' in window && window['sessionStorage'] !== null, diff --git a/js/CommonDialogs.js b/js/CommonDialogs.js index 757f84f81..d8733e1c2 100644 --- a/js/CommonDialogs.js +++ b/js/CommonDialogs.js @@ -1,3 +1,5 @@ +'use strict' +/* global __, ngettext */ define(["dojo/_base/declare"], function (declare) { return declare("fox.CommonDialogs", null, { quickAddFeed: function() { diff --git a/js/CommonFilters.js b/js/CommonFilters.js index 28a151690..3f508ef71 100644 --- a/js/CommonFilters.js +++ b/js/CommonFilters.js @@ -1,3 +1,5 @@ +'use strict' +/* global __, ngettext */ define(["dojo/_base/declare"], function (declare) { return declare("fox.CommonFilters", null, { filterDlgCheckAction: function(sender) { diff --git a/js/Feeds.js b/js/Feeds.js index a461ab7d2..c7db1aee5 100644 --- a/js/Feeds.js +++ b/js/Feeds.js @@ -1,3 +1,5 @@ +'use strict' +/* global __, ngettext */ define(["dojo/_base/declare"], function (declare) { return declare("fox.Feeds", null, { counters_last_request: 0, diff --git a/js/Headlines.js b/js/Headlines.js index 32bf222a7..d5f680f85 100755 --- a/js/Headlines.js +++ b/js/Headlines.js @@ -1,5 +1,5 @@ -/* global dijit, __, ngettext, notify */ - +'use strict'; +/* global __, ngettext */ define(["dojo/_base/declare"], function (declare) { return declare("fox.Headlines", null, { vgroup_last_feed: undefined, diff --git a/js/PluginHost.js b/js/PluginHost.js index a41694f34..9dbd91756 100644 --- a/js/PluginHost.js +++ b/js/PluginHost.js @@ -19,10 +19,10 @@ const PluginHost = { this.hooks[name].push(callback); }, run: function (name, args) { - console.warn('PluginHost::run ' + name); + //console.warn('PluginHost::run ' + name); if (typeof(this.hooks[name]) != 'undefined') - for (var i = 0; i < this.hooks[name].length; i++) + for (let i = 0; i < this.hooks[name].length; i++) if (!this.hooks[name][i](args)) break; } }; diff --git a/js/PrefUsers.js b/js/PrefUsers.js index aa3c2826d..891af8ddb 100644 --- a/js/PrefUsers.js +++ b/js/PrefUsers.js @@ -1,3 +1,5 @@ +'use strict' +/* global __, ngettext */ define(["dojo/_base/declare"], function (declare) { return declare("fox.PrefUsers", null, { diff --git a/js/Utils.js b/js/Utils.js index 204b3189c..8778143f2 100644 --- a/js/Utils.js +++ b/js/Utils.js @@ -1,3 +1,5 @@ +'use strict' +/* global __, ngettext */ define(["dojo/_base/declare"], function (declare) { return declare("fox.Utils", null, { _rpc_seq: 0, @@ -235,12 +237,6 @@ define(["dojo/_base/declare"], function (declare) { console.log("RI:", k, "=>", v); - if (k == "dep_ts" && parseInt(getInitParam("dep_ts")) > 0) { - if (parseInt(getInitParam("dep_ts")) < parseInt(v) && getInitParam("reload_on_ts_change")) { - window.location.reload(); - } - } - if (k == "daemon_is_running" && v != 1) { notify_error("<span onclick=\"Utils.explainError(1)\">Update daemon is not running.</span>", true); return; diff --git a/js/functions.js b/js/common.js index 0d52358ec..b63257099 100755 --- a/js/functions.js +++ b/js/common.js @@ -1,3 +1,4 @@ +'use strict' /* global dijit, __ */ let init_params = {}; diff --git a/js/prefs.js b/js/prefs.js index 637bc7905..7c4021201 100755 --- a/js/prefs.js +++ b/js/prefs.js @@ -1,3 +1,4 @@ +'use strict' /* global dijit, __ */ let Utils; diff --git a/js/tt-rss.js b/js/tt-rss.js index cbae4db4c..74b8403f8 100644 --- a/js/tt-rss.js +++ b/js/tt-rss.js @@ -1,3 +1,4 @@ +'use strict' /* global dijit,__ */ let Utils; |