diff --git a/src/editable-form/editable-form.js b/src/editable-form/editable-form.js index 7373ec7..12ae191 100644 --- a/src/editable-form/editable-form.js +++ b/src/editable-form/editable-form.js @@ -11,7 +11,7 @@ Editableform is linked with one of input types, e.g. 'text' or 'select'. var EditableForm = function (element, options) { this.options = $.extend({}, $.fn.editableform.defaults, options); - this.$element = $(element); //div, containing form. Not form tag! + this.$element = $(element); //div, containing form. Not form tag! Not editable-element. this.initInput(); }; @@ -69,6 +69,11 @@ Editableform is linked with one of input types, e.g. 'text' or 'select'. //input this.$form.find('div.editable-input').append(this.input.$input); + //automatically submit inputs when no buttons shown + if(!this.options.showbuttons) { + this.input.autosubmit(); + } + //"clear" link if(this.input.$clear) { this.$form.find('div.editable-input').append($('
normal|never
- submit='never' usefull for turning into classic form several inputs and submitting them together manually.
+ submitmode='never' usefull for turning into classic form several inputs and submitting them together manually.
Works pretty with showbuttons=false
- @property submit
+ @property submitmode
@type string
@default normal
- **/
- submit: 'normal'
+ */
+// submitmode: 'normal'
};
/*
diff --git a/src/inputs/abstract.js b/src/inputs/abstract.js
index fe7ed84..0da5ddb 100644
--- a/src/inputs/abstract.js
+++ b/src/inputs/abstract.js
@@ -127,7 +127,14 @@ To create your own input you should inherit from this class.
**/
escape: function(str) {
return $('