summaryrefslogtreecommitdiff
path: root/js/CommonDialogs.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2020-06-05 07:44:57 +0300
committerAndrew Dolgov <[email protected]>2020-06-05 07:44:57 +0300
commitd01ad09800b67d2c83e2707188c8e5c58991db1e (patch)
tree8f3ab62784ae0f520c49c504720b24f406678ae7 /js/CommonDialogs.js
parent88027d7a3913872c16f42cb9d9d713aa994eb034 (diff)
eslint-related fixes; move a few things from global context to App
Diffstat (limited to 'js/CommonDialogs.js')
-rw-r--r--js/CommonDialogs.js18
1 files changed, 10 insertions, 8 deletions
diff --git a/js/CommonDialogs.js b/js/CommonDialogs.js
index ea178ffca..d3ad35161 100644
--- a/js/CommonDialogs.js
+++ b/js/CommonDialogs.js
@@ -46,18 +46,20 @@ const CommonDialogs = {
xhr.onload = function () {
switch (parseInt(this.responseText)) {
case 0:
- Notify.info("Upload complete.");
+ {
+ Notify.info("Upload complete.");
- if (App.isPrefs())
- dijit.byId("feedTree").reload();
- else
- Feeds.reload();
+ if (App.isPrefs())
+ dijit.byId("feedTree").reload();
+ else
+ Feeds.reload();
- const icon = $$(".feed-editor-icon")[0];
+ const icon = $$(".feed-editor-icon")[0];
- if (icon)
- icon.src = icon.src.replace(/\?[0-9]+$/, "?" + new Date().getTime());
+ if (icon)
+ icon.src = icon.src.replace(/\?[0-9]+$/, "?" + new Date().getTime());
+ }
break;
case 1:
Notify.error("Upload failed: icon is too big.");