Archived
Minor bug fixes, added URL link on redirect page.
This commit is contained in:
4 files changed
+17
-11
No files matched your search
+1
-1
@@ -28,5 +28,5 @@ function urlinsert() {
|
||||
xhr.send( data );
|
||||
}
|
||||
function logout ( ) {
|
||||
window.location.href = "/?logout";
|
||||
window.location.href = script_name+"?logout";
|
||||
}
|
||||
+1
-1
@@ -10,7 +10,7 @@ function login() {
|
||||
var response = xhr.responseText;
|
||||
response = JSON.parse ( response );
|
||||
if ( response [ 'status' ] == 200 ) {
|
||||
window.location.href = "/";
|
||||
window.location.href = script_name;
|
||||
}
|
||||
else {
|
||||
document.getElementById ( "responsetext" ).innerHTML = response [ 'error_message' ];
|
||||
|
||||
Reference in new issue
Block a user