summaryrefslogtreecommitdiff
path: root/js/Utils.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-12-02 18:38:27 +0300
committerAndrew Dolgov <[email protected]>2018-12-02 18:38:27 +0300
commitf89924f7a19871e26d5805a6c1863903c6e474bf (patch)
tree8e7e26aa987d809c6a217319af79479c0006a260 /js/Utils.js
parent807ff074540575e6ef8f99ad32b098a816091171 (diff)
set use strict on JS modules; remove some mostly useless stuff like get_minified_js()
Diffstat (limited to 'js/Utils.js')
-rw-r--r--js/Utils.js8
1 files changed, 2 insertions, 6 deletions
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;