diff options
author | Andrew Dolgov <[email protected]> | 2018-12-03 09:33:44 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2018-12-03 09:33:44 +0300 |
commit | 84affc7b1d71769038dfd25d74e40d6bf744e5fb (patch) | |
tree | 97751786520bb686276a0791edc7e646f1822a91 /js/PrefUsers.js | |
parent | e905ce7ea983e425de85282ce7d24fb9f64402d4 (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/PrefUsers.js')
-rw-r--r-- | js/PrefUsers.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/js/PrefUsers.js b/js/PrefUsers.js index 20790ec5d..4f24f67cf 100644 --- a/js/PrefUsers.js +++ b/js/PrefUsers.js @@ -1,8 +1,7 @@ 'use strict' /* global __, ngettext */ define(["dojo/_base/declare"], function (declare) { - - return declare("fox.PrefUsers", null, { + Users = { reload: function(sort) { const user_search = $("user_search"); const search = user_search ? user_search.value : ""; @@ -115,7 +114,9 @@ define(["dojo/_base/declare"], function (declare) { getSelection :function() { return Tables.getSelected("prefUserList"); } - }); + } + + return Users; }); |