pushing the button of cancel the value must return the initial value but it dosn't work.

Posted by iosonoleggenda on Stack Overflow See other posts from Stack Overflow or by iosonoleggenda
Published on 2010-03-30T12:19:28Z Indexed on 2010/03/30 12:23 UTC
Read the original article Hit count: 386

Filed under:
|
|

$(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"); 

   } 

  }

});

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about slider