Fixed typos.

This commit is contained in:
Caleb Harrelson
2012-12-04 14:54:32 -06:00
parent b2009d7c45
commit 8f43ab95ff
7 changed files with 26 additions and 26 deletions

@ -377,7 +377,7 @@ Editableform is linked with one of input types, e.g. 'text' or 'select'.
name: null,
/**
Primary key of editable object (e.g. record id in database). For composite keys use object, e.g. <code>{id: 1, lang: 'en'}</code>.
Can be calculated dinamically via function.
Can be calculated dynamically via function.
@property pk
@type string|object|function
@ -418,7 +418,7 @@ Editableform is linked with one of input types, e.g. 'text' or 'select'.
validate: null,
/**
Success callback. Called when value successfully sent on server and **response status = 200**.
Usefull to work with json response. For example, if your backend response can be <code>{success: true}</code>
Useful to work with json response. For example, if your backend response can be <code>{success: true}</code>
or <code>{success: false, msg: "server error"}</code> you can check it inside this callback.
If it returns **string** - means error occured and string is shown as error message.
If it returns **object like** <code>{newValue: &lt;something&gt;}</code> - it overwrites value, submitted by user.
@ -443,7 +443,7 @@ Editableform is linked with one of input types, e.g. 'text' or 'select'.
**/
ajaxOptions: null,
/**
Wether to show buttons or not.
Whether to show buttons or not.
Form without buttons can be auto-submitted by input or by onblur = 'submit'.
@property showbuttons
@ -454,7 +454,7 @@ Editableform is linked with one of input types, e.g. 'text' or 'select'.
/*todo:
Submit strategy. Can be <code>normal|never</code>
<code>submitmode='never'</code> usefull for turning into classic form several inputs and submitting them together manually.
<code>submitmode='never'</code> useful for turning into classic form several inputs and submitting them together manually.
Works pretty with <code>showbuttons=false</code>
@property submitmode
@ -482,10 +482,10 @@ Editableform is linked with one of input types, e.g. 'text' or 'select'.
$.fn.editableform.buttons = '<button type="submit" class="editable-submit">ok</button>'+
'<button type="button" class="editable-cancel">cancel</button>';
//error class attahced to control-group
//error class attached to control-group
$.fn.editableform.errorGroupClass = null;
//error class attahced to editable-error-block
//error class attached to editable-error-block
$.fn.editableform.errorBlockClass = 'editable-error';
//input types