add check for undefined of pk
This commit is contained in:
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);
|
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,
|
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;
|
params;
|
||||||
|
|
||||||
if (send) { //send to server
|
if (send) { //send to server
|
||||||
|
Loading…
x
Reference in New Issue
Block a user