attach ui update

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7859 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ChanMyeong 2010-11-18 10:49:33 +00:00
parent 3c18e97d1d
commit d042e14f02
4 changed files with 67 additions and 99 deletions

View file

@ -2306,9 +2306,9 @@ FileUpload = xe.createPlugin('FileUpload', {
$item.find('button.ob > img')
.load(function(){
if(this.width > this.height){
$(this).css('width', '100%');
$(this).css('width', '54px');
} else {
$(this).css('height', '100%');
$(this).css('height', '54px');
}
})
.attr('src', f.download_url);