diff --git a/src/sunstone/public/js/sunstone.js b/src/sunstone/public/js/sunstone.js index 2c07cfcc9d..99bff73ac0 100644 --- a/src/sunstone/public/js/sunstone.js +++ b/src/sunstone/public/js/sunstone.js @@ -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('
'); dialog = $('div#confirm_with_select_dialog',dialogs_context);