diff options
author | Andrew Dolgov <[email protected]> | 2020-06-05 07:44:57 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2020-06-05 07:44:57 +0300 |
commit | d01ad09800b67d2c83e2707188c8e5c58991db1e (patch) | |
tree | 8f3ab62784ae0f520c49c504720b24f406678ae7 /js/CommonDialogs.js | |
parent | 88027d7a3913872c16f42cb9d9d713aa994eb034 (diff) |
eslint-related fixes; move a few things from global context to App
Diffstat (limited to 'js/CommonDialogs.js')
-rw-r--r-- | js/CommonDialogs.js | 18 |
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."); |