You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is no 'error:' callback in x-ediable until version 1.4.4 !
The best you can do is add
$('a.editable-click').editable({ajaxOptions: {error: function(xhr,status,error){if(xhr.status==422){varmsg='Error: ';errors=$.parseJSON(xhr.responseText);$.each(errors,function(k,v){msg+=k+": "+v;});//Edit the response, to be more awesome.xhr.responseText=msg;}}}});
This edits the content of the error message before x-editable's error() callback fills it into Bootstrap's error blocks.
There's little to be 'fixed' until this gem is updated to use version 1.4.4, so I thought I'd document this problem with a workaround.
The text was updated successfully, but these errors were encountered:
This is related to vitalets/x-editable#219
There is no 'error:' callback in x-ediable until version 1.4.4 !
The best you can do is add
This edits the content of the error message before x-editable's error() callback fills it into Bootstrap's error blocks.
There's little to be 'fixed' until this gem is updated to use version 1.4.4, so I thought I'd document this problem with a workaround.
The text was updated successfully, but these errors were encountered: