watermelon avatar 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
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.