comments
This commit is contained in:
parent
502151b9dc
commit
30242780ce
@ -288,6 +288,11 @@ 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 on server in following cases:
|
||||||
|
1. url is function
|
||||||
|
2. url is string AND (pk defined OR send option = always)
|
||||||
|
*/
|
||||||
send = !!(typeof this.options.url === 'function' || (this.options.url && ((this.options.send === 'always') || (this.options.send === 'auto' && pk !== null && pk !== undefined)))),
|
send = !!(typeof this.options.url === 'function' || (this.options.url && ((this.options.send === 'always') || (this.options.send === 'auto' && pk !== null && pk !== undefined)))),
|
||||||
params;
|
params;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user