comments for docs

This commit is contained in:
vitalets
2012-12-26 22:34:57 +04:00
parent cfd01064cb
commit 8f5f7f7f91
2 changed files with 16 additions and 18 deletions

@ -367,7 +367,7 @@ Editableform is linked with one of input types, e.g. 'text', 'select' etc.
url: function(params) {
if(params.value === 'abc') {
var d = new $.Deferred;
return d.reject('field cannot be "abc"'); //returning error via deferred object
return d.reject('error message'); //returning error via deferred object
} else {
someModel.set(params.name, params.value); //save data in some js model
}
@ -458,21 +458,21 @@ Editableform is linked with one of input types, e.g. 'text', 'select' etc.
/**
Additional options for ajax request.
List of values: http://api.jquery.com/jQuery.ajax
@property ajaxOptions
@type object
@default null
@since 1.1.1
@example
ajaxOptions: {
type: 'put',
dataType: 'json'
}
**/
ajaxOptions: null,
/**
Whether to show buttons or not.
Form without buttons can be auto-submitted by input or by onblur = 'submit'.
@example
ajaxOptions: {
method: 'PUT',
dataType: 'xml'
}
Form without buttons is auto-submitted.
@property showbuttons
@type boolean