From 61bd666a5ac69785e1344ced5ceb9e487a915aad Mon Sep 17 00:00:00 2001 From: Anon Ray Date: Tue, 7 Jan 2014 20:10:16 +0530 Subject: [PATCH] Small fix in information text --- swtr/static/js/swtmaker.js | 33 ++++++++++++++++++++++++++++++--- swtr/templates/index.html | 1 + 2 files changed, 31 insertions(+), 3 deletions(-) diff --git a/swtr/static/js/swtmaker.js b/swtr/static/js/swtmaker.js index 63637ec..b6b513b 100644 --- a/swtr/static/js/swtmaker.js +++ b/swtr/static/js/swtmaker.js @@ -289,7 +289,8 @@ success: function(data) { swtr.appView.$overlay.hide(); swtr.who = username; - $('#signinview').html('You are signed in.'); + var text = 'You are signed in as ' + swtr.who+ ''; + $('#signinview').html(text); }, error: function(jqxhr, status, error) { swtr.appView.$overlay.hide(); @@ -297,7 +298,7 @@ $('#signin-msg').html('Error signing in. Please check your username and password. '); } else { - $('#signin-msg').html('Error signin in. Please try again.'); + $('#signin-msg').html('Error signin in. Please try again. '); } } }); @@ -342,5 +343,31 @@ // utilities and helper functions to go here swtr.utils = {}; - swtr.AppView = AppView; + //swtr.AppView = AppView; + + /*navigator.watch({ + onlogin: function(assertion) { + $.ajax({ + type: 'POST', + url: swtr.swtstoreURL() + swtr.endpoints.login, + data: {assertion: assertion}, + success: function() { + }, + error: function() { + navigator.id.logout(); + } + }); + }, + onlogout: function() { + $.ajax({ + type: 'POST', + url: swtr.swtstoreURL() + swtr.endpoints.logout, + success: function() { + }, + error: function() { + } + }); + } + });*/ + })(swtr); diff --git a/swtr/templates/index.html b/swtr/templates/index.html index 733b1e5..38cf9e8 100644 --- a/swtr/templates/index.html +++ b/swtr/templates/index.html @@ -63,6 +63,7 @@ +