v0.1.5 - user registration & login page done

This commit is contained in:
2016-02-17 01:01:18 +01:00
parent d613a4c0e2
commit 38c6c5c311
9 changed files with 225 additions and 17 deletions

View File

@@ -11,11 +11,31 @@ NPGClient.PageHandler = {
//
setup: function() {
var self = this;
self.currPage = 'login';
self.currPage = NPGClient.LOGIN.NAME;
// create login page
self.createLoginPage();
},
//
setCurrPage: function(n) {
var self = this;
self.currPage = n;
},
//
moveToPage: function(n) {
var self = this;
switch (n) {
case NPGClient.LOGIN.NAME:
NPGClient.Utils.resetName();
NPGClient.PageHandler.getCurrPageUIElemByName('login_cursor').reset();
self.setCurrPage(NPGClient.LOGIN.NAME);
break;
default:
break;
}
},
//
getCurrPageUIElems: function() {
var self = this;