How can I make the first button non-default?
Here is my dialog:
$('<div>' + x + '</div>').dialog({
resizable: false,
modal:true,
minWidth:600,
buttons: {
//this is marked automatically as default:
"Igen, tovább a kosárhoz": function() {
navigate("/fotokidolgozas/kosar.php");
},
"Nem, vissza a kezdőlapra": function() {
navigate("/fotokidolgozas/index.php");
}
}
});
It is actually a bug / feature in JQuery UI. Bug ticket
It has been addressed and will be configurable in the 1.9 release.