From 84affc7b1d71769038dfd25d74e40d6bf744e5fb Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 3 Dec 2018 09:33:44 +0300 Subject: 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 --- js/CommonDialogs.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'js/CommonDialogs.js') 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 -- cgit v1.2.3