Merge branch 'patch-3' of git://github.com/mdeweerd/x-editable into mdeweerd-patch-3

This commit is contained in:
vitalets 2013-04-11 23:16:44 +04:00
commit 2bee082f5b

@ -265,7 +265,7 @@ Editableform is linked with one of input types, e.g. 'text', 'select' etc.
this.options.pk = $.fn.editableutils.tryParseJson(this.options.pk, true);
var pk = (typeof this.options.pk === 'function') ? this.options.pk.call(this.options.scope) : this.options.pk,
send = !!(typeof this.options.url === 'function' || (this.options.url && ((this.options.send === 'always') || (this.options.send === 'auto' && pk)))),
send = !!(typeof this.options.url === 'function' || (this.options.url && ((this.options.send === 'always') || (this.options.send === 'auto' && pk !== null)))),
params;
if (send) { //send to server
@ -558,4 +558,4 @@ Editableform is linked with one of input types, e.g. 'text', 'select' etc.
//error class attached to editable-error-block
$.fn.editableform.errorBlockClass = 'editable-error';
}(window.jQuery));
}(window.jQuery));