1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-25 02:50:08 +03:00

feature #2746: Close drop downs on click

This commit is contained in:
Daniel Molina 2014-03-14 15:23:36 +01:00
parent e5f62be143
commit 79d2d02b41
2 changed files with 6 additions and 1 deletions

View File

@ -495,6 +495,7 @@ $(document).ready(function(){
setupUpdatePassword();
$(".user-zone-info a.configuration").click(function(){
$(document).foundation('dropdown', 'closeall');
fillUserInfo();
OpenNebula.Group.list(

View File

@ -3644,6 +3644,8 @@ $(document).ready(function(){
value = $(this).attr('href');
}
$(document).foundation('dropdown', 'closeall');
var action = SunstoneCfg["actions"][value];
if (!action) {
notifyError("Action "+value+" not defined.");
@ -3672,6 +3674,7 @@ $(document).ready(function(){
//Listen .confirm_buttons. These buttons show a confirmation dialog
//before running the action.
$('.confirm_button',main_tabs_context).live("click",function(){
$(document).foundation('dropdown', 'closeall');
popUpConfirmDialog(this);
return false;
});
@ -3679,6 +3682,7 @@ $(document).ready(function(){
//Listen .confirm_buttons. These buttons show a confirmation dialog
//with a select box before running the action.
$('.confirm_with_select_button',main_tabs_context).live("click",function(){
$(document).foundation('dropdown', 'closeall');
popUpConfirmWithSelectDialog(this);
return false;
});
@ -3732,7 +3736,7 @@ $(document).ready(function(){
$(document).foundation({
reveal : {
animation: 'fade',
animation_speed: 250
animation_speed: 150
}
})
});