I have jQuery UI confirm dialog:
function fnComfirm(title, content) {
$(\"#dialog:ui-dialog\").dialog(\"destroy\");
$(\"#dialog-confirm p\").html(con
I don't know JS too well, but my guess is that the return false is returning within the nested function?! What you would want to do is this;
function fnComfirm(title, content) {
var returnVar;
$("#dialog:ui-dialog").dialog("destroy");
$("#dialog-confirm p").html(content);
$("#dialog-confirm").dialog({
title: title,
resizable: false,
height: 200,
width: 486,
modal: true,
buttons: {
"OK": function() {
$( this ).dialog("close");
returnVar = true;
},
Cancel: function() {
$( this ).dialog("close");
returnVar = false;
}
}
});
return returnVar;
}
Like I said, I'm not an expert in Javascript, but this is what I think is the problem :)