summaryrefslogtreecommitdiff
path: root/js/CommonDialogs.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-12-03 09:33:44 +0300
committerAndrew Dolgov <[email protected]>2018-12-03 09:33:44 +0300
commit84affc7b1d71769038dfd25d74e40d6bf744e5fb (patch)
tree97751786520bb686276a0791edc7e646f1822a91 /js/CommonDialogs.js
parente905ce7ea983e425de85282ce7d24fb9f64402d4 (diff)
rework dojo singleton modules to better work with phpstorm completion (ugh) - declare() is not needed there anyway
remove event.observe from login form (not needed) load pluginhost via amd
Diffstat (limited to 'js/CommonDialogs.js')
-rw-r--r--js/CommonDialogs.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/js/CommonDialogs.js b/js/CommonDialogs.js
index cf21370d6..b9cee8873 100644
--- a/js/CommonDialogs.js
+++ b/js/CommonDialogs.js
@@ -2,7 +2,7 @@
/* global __, ngettext */
define(["dojo/_base/declare"], function (declare) {
// noinspection JSUnusedGlobalSymbols
- return declare("fox.CommonDialogs", null, {
+ CommonDialogs = {
closeInfoBox: function() {
const dialog = dijit.byId("infoBox");
if (dialog) dialog.hide();
@@ -443,5 +443,7 @@ define(["dojo/_base/declare"], function (declare) {
}
return false;
}
- });
+ };
+
+ return CommonDialogs;
}); \ No newline at end of file