diff --git a/templates/js/controllers/registerController.js b/templates/js/controllers/registerController.js index 71abbaa..b46bc91 100644 --- a/templates/js/controllers/registerController.js +++ b/templates/js/controllers/registerController.js @@ -57,7 +57,7 @@ angular.module('SeHub') $mdDialog.show($mdDialog.alert().title('E-mail Verification').content('A verification e-mail has been sent to your email address.') .ariaLabel('Email verification alert dialog').ok('Got it!').targetEvent(ev)); // Pop-up alert for e-mail verification $cookieStore.remove("com.sehub.www"); // Removing the cookies - $window.location.href = 'http://se-hub.appspot.com'; + $window.location.href = 'http://se-hub.appspot.com'; // Reference to 'welcome' page }).error(function() { $mdDialog.show($mdDialog.alert().title('Error - E-mail Verification').content('An error has occured in your e-mail address.') @@ -66,6 +66,17 @@ angular.module('SeHub') }; }; + $scope.lecturerPrivilege = function(data) + { + // console.log("Now " + data); + var isLecturer; + if(!data) // if i am a lecturer (when pressing -> getting last data value before pressing) = "!data" => I Am Lecturer + { + isLecturer = true; + console.log("im lecturer " + isLecturer); + } + } + // TODO FOR LATER - toast // TODO FOR LATER diff --git a/templates/views/register.html b/templates/views/register.html index 7bbebc3..dad2074 100644 --- a/templates/views/register.html +++ b/templates/views/register.html @@ -1,7 +1,7 @@
Are You A Lecturer?
-