same, but for preferences

This commit is contained in:
Andrew Dolgov 2020-06-04 20:04:17 +03:00
parent e37f8cfa78
commit 30ed5d7c3c
3 changed files with 319 additions and 331 deletions

View File

@ -1,5 +1,4 @@
define(["dojo/_base/declare"], function (declare) { const Helpers = {
Helpers = {
AppPasswords: { AppPasswords: {
getSelected: function() { getSelected: function() {
return Tables.getSelected("app-password-list"); return Tables.getSelected("app-password-list");
@ -268,7 +267,4 @@ define(["dojo/_base/declare"], function (declare) {
return false; return false;
}, },
} }
}; };
return Helpers;
});

View File

@ -1,7 +1,7 @@
'use strict' 'use strict'
/* global __, ngettext */ /* global __, ngettext */
define(["dojo/_base/declare"], function (declare) {
Users = { const Users = {
reload: function(sort) { reload: function(sort) {
const user_search = $("user_search"); const user_search = $("user_search");
const search = user_search ? user_search.value : ""; const search = user_search ? user_search.value : "";
@ -114,9 +114,5 @@ define(["dojo/_base/declare"], function (declare) {
getSelection :function() { getSelection :function() {
return Tables.getSelected("prefUserList"); return Tables.getSelected("prefUserList");
} }
} }
return Users;
});

View File

@ -2,10 +2,6 @@
/* global dijit, __ */ /* global dijit, __ */
let App; let App;
let CommonDialogs;
let Filters;
let Users;
let Helpers;
const Plugins = {}; const Plugins = {};