aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/Login.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-10-04 18:23:32 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-10-04 18:23:32 +1300
commit99d132dc78b42b6cc5833b3a7faf30d2fe56186f (patch)
tree045052b15478c32c44f36a07c70885a756ea19b3 /web/app/view/Login.js
parentdcfe1d48998c3fb3baa704fafed43d996f329a07 (diff)
downloadtrackermap-server-99d132dc78b42b6cc5833b3a7faf30d2fe56186f.tar.gz
trackermap-server-99d132dc78b42b6cc5833b3a7faf30d2fe56186f.tar.bz2
trackermap-server-99d132dc78b42b6cc5833b3a7faf30d2fe56186f.zip
Disable JavaScript strict mode
Diffstat (limited to 'web/app/view/Login.js')
-rw-r--r--web/app/view/Login.js136
1 files changed, 66 insertions, 70 deletions
diff --git a/web/app/view/Login.js b/web/app/view/Login.js
index 6e10a6824..a4a68843d 100644
--- a/web/app/view/Login.js
+++ b/web/app/view/Login.js
@@ -13,84 +13,80 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-(function () {
- 'use strict';
- Ext.define('Traccar.view.Login', {
- extend: 'Traccar.view.BaseDialog',
- alias: 'widget.login',
+Ext.define('Traccar.view.Login', {
+ extend: 'Traccar.view.BaseDialog',
+ alias: 'widget.login',
- requires: [
- 'Traccar.view.LoginController'
- ],
+ requires: [
+ 'Traccar.view.LoginController'
+ ],
- controller: 'login',
+ controller: 'login',
- closable: false,
- modal: false,
+ closable: false,
+ modal: false,
- items: {
- xtype: 'form',
- reference: 'form',
+ items: {
+ xtype: 'form',
+ reference: 'form',
- autoEl: {
- tag: 'form',
- method: 'POST',
- action: 'blank',
- target: 'submitTarget'
- },
-
- items: [{
- xtype: 'combobox',
- name: 'language',
- fieldLabel: Strings.loginLanguage,
- store: 'Languages',
- displayField: 'name',
- valueField: 'code',
- submitValue: false,
- listeners: {
- select: 'onSelectLanguage'
- },
- reference: 'languageField'
- }, {
- xtype: 'textfield',
- name: 'email',
- fieldLabel: Strings.userEmail,
- allowBlank: false,
- enableKeyEvents: true,
- listeners: {
- specialKey: 'onSpecialKey',
- afterrender: 'onAfterRender'
- },
- inputAttrTpl: ['autocomplete="on"']
- }, {
- xtype: 'textfield',
- name: 'password',
- fieldLabel: Strings.userPassword,
- inputType: 'password',
- allowBlank: false,
- enableKeyEvents: true,
- listeners: {
- specialKey: 'onSpecialKey'
- },
- inputAttrTpl: ['autocomplete="on"']
- }, {
- xtype: 'component',
- html: '<iframe id="submitTarget" name="submitTarget" style="display:none"></iframe>'
- }, {
- xtype: 'component',
- html: '<input type="submit" id="submitButton" style="display:none">'
- }]
+ autoEl: {
+ tag: 'form',
+ method: 'POST',
+ action: 'blank',
+ target: 'submitTarget'
},
- buttons: [{
- text: Strings.loginRegister,
- handler: 'onRegisterClick',
- reference: 'registerButton'
+ items: [{
+ xtype: 'combobox',
+ name: 'language',
+ fieldLabel: Strings.loginLanguage,
+ store: 'Languages',
+ displayField: 'name',
+ valueField: 'code',
+ submitValue: false,
+ listeners: {
+ select: 'onSelectLanguage'
+ },
+ reference: 'languageField'
+ }, {
+ xtype: 'textfield',
+ name: 'email',
+ fieldLabel: Strings.userEmail,
+ allowBlank: false,
+ enableKeyEvents: true,
+ listeners: {
+ specialKey: 'onSpecialKey',
+ afterrender: 'onAfterRender'
+ },
+ inputAttrTpl: ['autocomplete="on"']
+ }, {
+ xtype: 'textfield',
+ name: 'password',
+ fieldLabel: Strings.userPassword,
+ inputType: 'password',
+ allowBlank: false,
+ enableKeyEvents: true,
+ listeners: {
+ specialKey: 'onSpecialKey'
+ },
+ inputAttrTpl: ['autocomplete="on"']
+ }, {
+ xtype: 'component',
+ html: '<iframe id="submitTarget" name="submitTarget" style="display:none"></iframe>'
}, {
- text: Strings.loginLogin,
- handler: 'onLoginClick'
+ xtype: 'component',
+ html: '<input type="submit" id="submitButton" style="display:none">'
}]
- });
+ },
-})();
+ buttons: [{
+ text: Strings.loginRegister,
+ handler: 'onRegisterClick',
+ reference: 'registerButton'
+ }, {
+ text: Strings.loginLogin,
+ handler: 'onLoginClick'
+ }]
+});