From 8df731036a3be2589bc78e1d43ff36a00e47e952 Mon Sep 17 00:00:00 2001 From: vitalets Date: Fri, 30 Nov 2012 19:27:23 +0400 Subject: [PATCH] comments for docs --- src/containers/editable-container.js | 6 +++--- src/editable-form/editable-form.js | 4 ++-- src/element/editable-element.js | 8 ++++---- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/containers/editable-container.js b/src/containers/editable-container.js index 651eb22..0029eba 100644 --- a/src/containers/editable-container.js +++ b/src/containers/editable-container.js @@ -359,12 +359,12 @@ Applied as jQuery method. **/ autohide: true, /** - Action when user clicks outside the container. Can be cancel|submit|ignore - Setting ignore ignore allows to have several containers open. + Action when user clicks outside the container. Can be cancel|submit|ignore. + Setting ignore allows to have several containers open. @property onblur @type string - @default cancel + @default 'cancel' **/ onblur: 'cancel' }; diff --git a/src/editable-form/editable-form.js b/src/editable-form/editable-form.js index dcf661f..a2db423 100644 --- a/src/editable-form/editable-form.js +++ b/src/editable-form/editable-form.js @@ -443,8 +443,8 @@ Editableform is linked with one of input types, e.g. 'text' or 'select'. **/ ajaxOptions: null, /** - Wether to show buttons or not. - Form without buttons can be submitted by Enter (depends on input), by onblur = 'submit' or manually (via submit api method) + Wether to show buttons or not. + Form without buttons can be auto-submitted by input or by onblur = 'submit'. @property showbuttons @type boolean diff --git a/src/element/editable-element.js b/src/element/editable-element.js index 0e2cfe5..bd23548 100644 --- a/src/element/editable-element.js +++ b/src/element/editable-element.js @@ -473,7 +473,7 @@ Makes editable any HTML element on the page. Applied as jQuery method. $.fn.editable.defaults = { /** - Type of input. Can be text|textarea|select|date + Type of input. Can be text|textarea|select|date|checklist and more @property type @type string @@ -489,8 +489,8 @@ Makes editable any HTML element on the page. Applied as jQuery method. **/ disabled: false, /** - How to toggle editable. Can be click|dblclick|mouseenter|manual. - When set to manual you should manually call show/hide methods of editable. + How to toggle editable. Can be click|dblclick|mouseenter|manual. + When set to manual you should manually call show/hide methods of editable. **Note**: if you call show or toggle inside **click** handler of some DOM element, you need to apply e.stopPropagation() because containers are being closed on any click on document. @@ -535,7 +535,7 @@ Makes editable any HTML element on the page. Applied as jQuery method. **/ enablefocus: false, /** - Initial value of input + Initial value of input. Taken from data-value or element's text. @property value @type mixed