fix typos
This commit is contained in:
@ -119,7 +119,7 @@ Applied as jQuery method.
|
||||
/**
|
||||
Shows container with form
|
||||
@method show()
|
||||
@param {boolean} closeAll Wether to close all other editable containers when showing this one. Default true.
|
||||
@param {boolean} closeAll Whether to close all other editable containers when showing this one. Default true.
|
||||
**/
|
||||
show: function (closeAll) {
|
||||
this.$element.addClass('editable-open');
|
||||
@ -167,7 +167,7 @@ Applied as jQuery method.
|
||||
/**
|
||||
Toggles container visibility (show / hide)
|
||||
@method toggle()
|
||||
@param {boolean} closeAll Wether to close all other editable containers when showing this one. Default true.
|
||||
@param {boolean} closeAll Whether to close all other editable containers when showing this one. Default true.
|
||||
**/
|
||||
toggle: function(closeAll) {
|
||||
if(this.tip && this.tip().is(':visible')) {
|
||||
@ -350,7 +350,7 @@ Applied as jQuery method.
|
||||
**/
|
||||
placement: 'top',
|
||||
/**
|
||||
Wether to hide container on save/cancel.
|
||||
Whether to hide container on save/cancel.
|
||||
|
||||
@property autohide
|
||||
@type boolean
|
||||
|
@ -392,7 +392,7 @@ Editableform is linked with one of input types, e.g. 'text', 'select' etc.
|
||||
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
|
||||
@ -433,7 +433,7 @@ Editableform is linked with one of input types, e.g. 'text', 'select' etc.
|
||||
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: <something>}</code> - it overwrites value, submitted by user.
|
||||
@ -511,10 +511,10 @@ Editableform is linked with one of input types, e.g. 'text', 'select' etc.
|
||||
$.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';
|
||||
|
||||
}(window.jQuery));
|
@ -211,7 +211,7 @@ Makes editable any HTML element on the page. Applied as jQuery method.
|
||||
/**
|
||||
Shows container with form
|
||||
@method show()
|
||||
@param {boolean} closeAll Wether to close all other editable containers when showing this one. Default true.
|
||||
@param {boolean} closeAll Whether to close all other editable containers when showing this one. Default true.
|
||||
**/
|
||||
show: function (closeAll) {
|
||||
if(this.options.disabled) {
|
||||
@ -259,7 +259,7 @@ Makes editable any HTML element on the page. Applied as jQuery method.
|
||||
/**
|
||||
Toggles container visibility (show / hide)
|
||||
@method toggle()
|
||||
@param {boolean} closeAll Wether to close all other editable containers when showing this one. Default true.
|
||||
@param {boolean} closeAll Whether to close all other editable containers when showing this one. Default true.
|
||||
**/
|
||||
toggle: function(closeAll) {
|
||||
if(this.container && this.container.tip().is(':visible')) {
|
||||
@ -315,7 +315,7 @@ Makes editable any HTML element on the page. Applied as jQuery method.
|
||||
Sets new value of editable
|
||||
@method setValue(value, convertStr)
|
||||
@param {mixed} value new value
|
||||
@param {boolean} convertStr wether to convert value from string to internal format
|
||||
@param {boolean} convertStr whether to convert value from string to internal format
|
||||
**/
|
||||
setValue: function(value, convertStr) {
|
||||
if(convertStr) {
|
||||
@ -372,7 +372,7 @@ Makes editable any HTML element on the page. Applied as jQuery method.
|
||||
$('#username, #fullname').editable('validate');
|
||||
// possible result:
|
||||
{
|
||||
username: "username is requied",
|
||||
username: "username is required",
|
||||
fullname: "fullname should be minimum 3 letters length"
|
||||
}
|
||||
**/
|
||||
@ -518,7 +518,7 @@ Makes editable any HTML element on the page. Applied as jQuery method.
|
||||
**/
|
||||
emptytext: 'Empty',
|
||||
/**
|
||||
Allows to automatically set element's text based on it's value. Can be <code>auto|always|never</code>. Usefull for select and date.
|
||||
Allows to automatically set element's text based on it's value. Can be <code>auto|always|never</code>. Useful for select and date.
|
||||
For example, if dropdown list is <code>{1: 'a', 2: 'b'}</code> and element's value set to <code>1</code>, it's html will be automatically set to <code>'a'</code>.
|
||||
<code>auto</code> - text will be automatically set only if element is empty.
|
||||
<code>always|never</code> - always(never) try to set element's text.
|
||||
|
@ -13,7 +13,7 @@ To create your own input you should inherit from this class.
|
||||
|
||||
Abstract.prototype = {
|
||||
/**
|
||||
Iinitializes input
|
||||
Initializes input
|
||||
|
||||
@method init()
|
||||
**/
|
||||
@ -65,7 +65,7 @@ To create your own input you should inherit from this class.
|
||||
},
|
||||
|
||||
/**
|
||||
Converts value to string (for submiting to server)
|
||||
Converts value to string (for submitting to server)
|
||||
|
||||
@method value2str(value)
|
||||
@param {mixed} value
|
||||
@ -117,7 +117,7 @@ To create your own input you should inherit from this class.
|
||||
},
|
||||
|
||||
/**
|
||||
Creares input.
|
||||
Creates input.
|
||||
|
||||
@method clear()
|
||||
**/
|
||||
@ -133,7 +133,7 @@ To create your own input you should inherit from this class.
|
||||
},
|
||||
|
||||
/**
|
||||
attach handler to automatically submit form when value changed (usefull when buttons not shown)
|
||||
attach handler to automatically submit form when value changed (useful when buttons not shown)
|
||||
**/
|
||||
autosubmit: function() {
|
||||
|
||||
|
@ -245,7 +245,7 @@ List - abstract class for inputs that have source option loaded from js array or
|
||||
**/
|
||||
source:null,
|
||||
/**
|
||||
Data automatically prepended to the begining of dropdown list.
|
||||
Data automatically prepended to the beginning of dropdown list.
|
||||
|
||||
@property prepend
|
||||
@type string|array|object
|
||||
|
Reference in New Issue
Block a user