Browse Source

Login/Register fixes.

Nathaniel van Diepen 11 years ago
parent
commit
001a927614
2 changed files with 3 additions and 3 deletions
  1. 2 2
      data/pages/login.template
  2. 1 1
      data/pages/register.template

+ 2 - 2
data/pages/login.template

@@ -26,13 +26,13 @@
 				History.go(-1);
 			}else{
 				setKey(null);
-				apiState('page-login');
+				$('#loading').hide();
 			}
 			return false;
 		});
 		return false;
 	}).children('.cancel').click(function(){
-		loadState('page-index');
+		History.back();
 		return false;
 	});
 </script>

+ 1 - 1
data/pages/register.template

@@ -43,7 +43,7 @@
 			});
 		return false;
 	}).children('.cancel').click(function(){
-		loadState('page-index');
+		History.back();
 		return false;
 	});
 </script>