diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-10-04 18:23:32 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-10-04 18:23:32 +1300 |
commit | 99d132dc78b42b6cc5833b3a7faf30d2fe56186f (patch) | |
tree | 045052b15478c32c44f36a07c70885a756ea19b3 /web/app/view/User.js | |
parent | dcfe1d48998c3fb3baa704fafed43d996f329a07 (diff) | |
download | trackermap-server-99d132dc78b42b6cc5833b3a7faf30d2fe56186f.tar.gz trackermap-server-99d132dc78b42b6cc5833b3a7faf30d2fe56186f.tar.bz2 trackermap-server-99d132dc78b42b6cc5833b3a7faf30d2fe56186f.zip |
Disable JavaScript strict mode
Diffstat (limited to 'web/app/view/User.js')
-rw-r--r-- | web/app/view/User.js | 88 |
1 files changed, 46 insertions, 42 deletions
diff --git a/web/app/view/User.js b/web/app/view/User.js index 9eb0232f7..b642b5518 100644 --- a/web/app/view/User.js +++ b/web/app/view/User.js @@ -13,52 +13,56 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -(function () { - 'use strict'; - Ext.define('Traccar.view.User', { - extend: 'Ext.grid.Panel', - xtype: 'userView', +Ext.define('Traccar.view.User', { + extend: 'Ext.grid.Panel', + xtype: 'userView', - requires: [ - 'Traccar.view.UserController' - ], + requires: [ + 'Traccar.view.UserController' + ], - controller: 'user', - store: 'Users', + controller: 'user', + store: 'Users', - selType: 'rowmodel', + selType: 'rowmodel', - tbar: [{ - text: Strings.sharedAdd, - handler: 'onAddClick', - reference: 'deviceAddButton' - }, { - text: Strings.sharedEdit, - disabled: true, - handler: 'onEditClick', - reference: 'userEditButton' - }, { - text: Strings.sharedRemove, - disabled: true, - handler: 'onRemoveClick', - reference: 'userRemoveButton' - }, { - text: Strings.deviceTitle, - disabled: true, - handler: 'onDevicesClick', - reference: 'userDevicesButton' - }], + tbar: [{ + text: Strings.sharedAdd, + handler: 'onAddClick', + reference: 'deviceAddButton' + }, { + text: Strings.sharedEdit, + disabled: true, + handler: 'onEditClick', + reference: 'userEditButton' + }, { + text: Strings.sharedRemove, + disabled: true, + handler: 'onRemoveClick', + reference: 'userRemoveButton' + }, { + text: Strings.deviceTitle, + disabled: true, + handler: 'onDevicesClick', + reference: 'userDevicesButton' + }], - listeners: { - selectionchange: 'onSelectionChange' - }, + listeners: { + selectionchange: 'onSelectionChange' + }, - columns: [ - {text: Strings.userName, dataIndex: 'name', flex: 1}, - {text: Strings.userEmail, dataIndex: 'email', flex: 1}, - {text: Strings.userAdmin, dataIndex: 'admin', flex: 1} - ] - }); - -})(); + columns: [{ + text: Strings.userName, + dataIndex: 'name', + flex: 1 + }, { + text: Strings.userEmail, + dataIndex: 'email', + flex: 1 + }, { + text: Strings.userAdmin, + dataIndex: 'admin', + flex: 1 + }] +}); |