From 108b4f41df3bd703ba1beaef80013f2ef0c810da Mon Sep 17 00:00:00 2001 From: chapel Date: Sat, 19 Nov 2011 14:22:46 -0800 Subject: [PATCH] Multiple fixes - Fix not found errors - Fix pass reset link in html - Fix protodiv error in IE - Fix button for new items showing when it shouldn't - Move login info to use jquery to fill name --- app.js | 6 +++--- public/index.html | 16 ++++++++-------- public/javascripts/main.js | 22 +++++++++++----------- public/javascripts/protodiv.js | 34 +++++++++++++++------------------- 4 files changed, 37 insertions(+), 41 deletions(-) diff --git a/app.js b/app.js index 27d2fc5..62c543c 100644 --- a/app.js +++ b/app.js @@ -327,7 +327,7 @@ function loadSchool( req, res, next ) { }); } else { // If no school is found, display an appropriate error. - sendJson(res, {status: 'error', message: 'Invalid school specified!'} ); + sendJson(res, {status: 'not_found', message: 'Invalid school specified!'} ); } }); } @@ -351,7 +351,7 @@ function loadCourse( req, res, next ) { }); } else { // If no course is found, display an appropriate error. - sendJson(res, {status: 'error', message: 'Invalid course specified!'} ); + sendJson(res, {status: 'not_found', message: 'Invalid course specified!'} ); } }); } @@ -375,7 +375,7 @@ function loadLecture( req, res, next ) { }); } else { // If no lecture is found, display an appropriate error. - sendJson(res, {status: 'error', message: 'Invalid lecture specified!'} ); + sendJson(res, {status: 'not_found', message: 'Invalid lecture specified!'} ); } }); } diff --git a/public/index.html b/public/index.html index 5b5d069..cd42b6c 100644 --- a/public/index.html +++ b/public/index.html @@ -24,7 +24,7 @@
-
Currently logged in as __name__
+