From 3f177bc1bcb49d701e8b5817e2715229a2fcff59 Mon Sep 17 00:00:00 2001 From: mdeweerd <m.deweerd@ieee.org> Date: Sun, 7 Apr 2013 19:00:07 +0300 Subject: [PATCH] Change to allow pk=0 Another try - hopefully this time in dev. --- src/editable-form/editable-form.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/editable-form/editable-form.js b/src/editable-form/editable-form.js index 25d59b7..c01be75 100644 --- a/src/editable-form/editable-form.js +++ b/src/editable-form/editable-form.js @@ -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)); \ No newline at end of file +}(window.jQuery));