Merge remote-tracking branch 'origin/QA_3_5' into QA_3_5

This commit is contained in:
Michal Čihař 2012-03-19 05:00:26 +01:00
commit d215b238ae

View File

@ -1903,17 +1903,25 @@ jQuery.fn.PMA_confirm = function(question, url, callbackFn) {
*/
var button_options = {};
button_options[PMA_messages['strOK']] = function(){
$(this).dialog("close").remove();
$(this).dialog("close");
if($.isFunction(callbackFn)) {
callbackFn.call(this, url);
}
};
button_options[PMA_messages['strCancel']] = function() {$(this).dialog("close").remove();}
if($.isFunction(callbackFn)) {
callbackFn.call(this, url);
}
};
button_options[PMA_messages['strCancel']] = function() {
$(this).dialog("close");
}
$('<div id="confirm_dialog"></div>')
$('<div/>', {'id':'confirm_dialog'})
.prepend(question)
.dialog({buttons: button_options});
.dialog({
buttons: button_options,
close: function () {
$(this).remove();
},
modal: true
});
};
/**