pushing the button of cancel the value must return the initial value but it dosn't work.
- by iosonoleggenda
$(function(){
// Dialog
$('#mdialog').dialog({
autoOpen: false,
width: 320,
buttons: {
"Apply": function() {
<!--alert($('#slider').slider('option', 'value'));-->
try{
SendCommandToAO($('#slider').slider('option', 'value'), 'AO=a1c1p1', 0, 65535, 0, 65535, -1);
}catch(e){
//Fool
}
//$(this).dialog("close");
},
"Cancel": function() {
$(this).dialog("close");
}
}
});