aboutsummaryrefslogtreecommitdiff
path: root/web/Login.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-05-06 22:23:26 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-05-06 22:23:26 +1200
commit80e166430b79df771abc73e55892dc9f5fd0b2f1 (patch)
tree72c8849812ec43bd97f6f8bf65d6e700d5bdf7df /web/Login.js
parentb9d6befdbcc1a56c87d14066d67da574762d81bc (diff)
downloadtrackermap-server-80e166430b79df771abc73e55892dc9f5fd0b2f1.tar.gz
trackermap-server-80e166430b79df771abc73e55892dc9f5fd0b2f1.tar.bz2
trackermap-server-80e166430b79df771abc73e55892dc9f5fd0b2f1.zip
Add new user registration
Diffstat (limited to 'web/Login.js')
-rw-r--r--web/Login.js11
1 files changed, 9 insertions, 2 deletions
diff --git a/web/Login.js b/web/Login.js
index 871bef17b..cdc312bf8 100644
--- a/web/Login.js
+++ b/web/Login.js
@@ -37,7 +37,10 @@ Ext.define('LoginForm', {
}],
buttons: [{
- text: Strings.login_register
+ text: Strings.login_register,
+ handler: function() {
+ Ext.create('RegisterDialog').show();
+ }
}, {
text: Strings.login_login,
handler: function() {
@@ -59,10 +62,14 @@ Ext.define('LoginForm', {
Ext.define('Login', {
extend: 'Ext.window.Window',
- requires: [ 'MainView' ],
+ requires: [
+ 'MainView',
+ 'RegisterDialog'
+ ],
title: Strings.login_title,
closable: false,
+ resizable: false,
items: [{ xtype: 'login-form' }],