add check for undefined of pk

This commit is contained in:
vitalets 2013-04-11 23:22:57 +04:00
parent 2bee082f5b
commit 035b6bccb0

@ -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 !== null)))),
send = !!(typeof this.options.url === 'function' || (this.options.url && ((this.options.send === 'always') || (this.options.send === 'auto' && pk !== null && pk !== undefined)))),
params;
if (send) { //send to server