Hi there,
i have the following code:
var dlg = $.messager.prompt({
iconCls: 'icon-contacts',
title: ' testtitle',
msg: 'testmessage',
shadow: false,
buttons:[{
value: true,
plain: true,
iconCls: 'icon-save',
text: 'save',
width: 150,
},{
plain: true,
iconCls: 'icon-cancel',
text: 'cancel',
width: 100,
value: false
}],
fn: function(r){
if (r) {
alert(r);
}
}
});
When clicking the buttons there is no function - why?