fix address value2html

This commit is contained in:
vitalets
2012-12-06 22:36:58 +04:00
parent 111f983f5d
commit f79e92c14a
2 changed files with 13 additions and 10 deletions
src
element
inputs-ext
address

@ -558,10 +558,10 @@ Makes editable any HTML element on the page. Applied as jQuery method.
**/
value: null,
/**
Callback to perform custom displaying of value in element's text.
If <code>null</code>, default input's value2html() will be called.
If <code>false</code>, no displaying methods will be called, element's text will no change.
Runs under element's scope.
Callback to perform custom displaying of value in element's text.
If <code>null</code>, default input's value2html() will be called.
If <code>false</code>, no displaying methods will be called, element's text will no change.
Runs under element's scope.
Second parameter __sourceData__ is passed for inputs with source (select, checklist).
@property display
@ -570,7 +570,8 @@ Makes editable any HTML element on the page. Applied as jQuery method.
@since 1.2.0
@example
display: function(value, sourceData) {
$(this).html('<b>'+value+'</b>');
var escapedValue = $('<div>').text(value).html();
$(this).html('<b>'+escapedValue+'</b>');
}
**/
display: null