Hi,
im trying to create a dialog with two buttons (yes, no) from script. The examples on the site already have a the pop visible with divs. Basically when a user clicks on a link on my site i want the dialog to appear.
So far I can do that by using this:
$.messager.confirm('Unsaved Changes', 'Save before proceeding?', function(r){
if (r){
//user said yes
alert('confirmed:'+r);
} else {
//user said no, so do not save and redirect
parent.location.href = requestedLink;
}
However what I would like to know is how do i tell it to show a 'yes' button and a 'no' button? Obviously the dialog should only be shown when the user clicks on a link on my site.. The documentation does not seem to show this, neither does the demo.
Thanks