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

@ -31,14 +31,16 @@ $(function(){
$.extend(Address.prototype, {
render: function() {
Address.superclass.render.call(this);
// this.$input.
},
//standard way to show value in element. Used only if display option not defined.
value2html: function(value, element) {
var html = value.city + ', ' + value.street + ' st., bld. ' + value.building;
$(element).text(html);
if(!value) {
$(element).empty();
return;
}
var html = $('<div>').text(value.city).html() + ', ' + $('<div>').text(value.street).html() + ' st., bld. ' + $('<div>').text(value.building).html();
$(element).html(html);
},
html2value: function(html) {