mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
Bug #932: Add listener to cancel button in simple confirm dialogs
(cherry picked from commit 0e6f5f54ffb9022a93eb2c31d4c7e977a44dcb3d)
This commit is contained in:
parent
d37865d277
commit
9cd6a57c37
@ -640,6 +640,12 @@ function setupConfirmDialogs(){
|
||||
//enhace the button look
|
||||
$('button',dialog).button();
|
||||
|
||||
//if a cancel button is pressed, we close the dialog.
|
||||
$('button.confirm_cancel',dialog).click(function(){
|
||||
$(this).parents('div:ui-dialog').dialog("close");
|
||||
return false;
|
||||
});
|
||||
|
||||
dialogs_context.append('<div id="confirm_with_select_dialog" title="Confirmation of action"></div>');
|
||||
dialog = $('div#confirm_with_select_dialog',dialogs_context);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user