Commits

watermelon committed f32688e

fixed bug: now only one account option is shown at a time

Comments (0)

Files changed (1)

src/main/client/ui/manage_account_presenter.js

  **/
 bookmaak.ui.onClickLogout = function() {
 	
+	//TODO make that one a controller property .... so we can access last login from every state for security we should clean it some time...
 	var last_login = bookmaak.controller.Controller.login_name;
 	
 	console.debug("bookmaak.ui.onClickLogout: loggin out...");
 	jQuery(".view").hide();
 	
 	jQuery("#backbutton").hide();
-	
+
+	//hide all options by default
+	jQuery(".man_opt_option").hide();
 	switch(option_to_show) {
 		case "#man_opt_import_export":
 		case "#man_opt_change_account":
 		case "#man_opt_delete_account":
 			jQuery(option_to_show).show();
 			break;
-		default:
-			//hide all options by default
-			jQuery(".man_opt_option").hide();
 	}
 	
 	//show view