From 30242780ce763f48328b786cd0913ab529139f5d Mon Sep 17 00:00:00 2001 From: vitalets <noginsk@rambler.ru> Date: Sun, 23 Jun 2013 12:20:41 +0400 Subject: [PATCH] comments --- src/editable-form/editable-form.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/editable-form/editable-form.js b/src/editable-form/editable-form.js index a690ba5..7ab89d9 100644 --- a/src/editable-form/editable-form.js +++ b/src/editable-form/editable-form.js @@ -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); 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)))), params;