Jeditable CANCEL callback from AJAX callback?

I see some answers for the Jeditable plugin to use the callback function from AJAX using the full callback function.

I know that Jeditable has a callback function for the SUBMIT button, so I would like to know if there is a way to get a callback for the CANCEL button? I did not find any documents in the plugins.

Thanks for the answer,

Carlos

PD. This is the source that I see for COMPLETE from the AJAX callback:

$("#editable_text").editable(submitEdit, { 
            indicator : "Saving...",
            tooltip   : "Click to edit...",
            name : "Editable.FieldName",
            id   : "elementid",
            type : "text",
});
function submitEdit(value, settings)
{ 
   var edits = new Object();
   var origvalue = this.revert;
   var textbox = this;
   var result = value;
   edits[settings.name] = [value];
   var returned = $.ajax({
           url: "http://URLTOPOSTTO", 
           type: "POST",
           data : edits,
           dataType : "json",
           complete : function (xhr, textStatus) 
           {
               var response =  $.secureEvalJSON(xhr.responseText);
               if (response.Message != "") 
               {
                   alert(Message);
               } 
           }
           });
   return(result);
 }
+5
source share
1 answer

, "onreset", , , , jEditable . :

$("#editable_text").editable(submitEdit, { 
    //...
    onreset: jeditableReset,
    //...
});

function jeditableReset(settings, original) {
   // whatever you need to do here
}

jquery.jeditable.js.

: ( ), onreset .

+4

All Articles