X-editable onblur set: "send" as default behavior

If you use X-Editable, you can set some default options, for example

$.fn.editable.defaults.ajaxOptions = {type: "put"}

or

$.fn.editable.defaults.mode = 'inline';

Is there a convenient way to set an editable function for all my applications - to onblurbe 'submit', not 'cancel'?

+4
source share
1 answer
$.fn.editable.defaults.onblur = "submit";

This will update onblur for all elements editablein the application.

+3
source

All Articles