rollback to revision 7819

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7835 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
taggon 2010-11-15 04:38:18 +00:00
parent 85178c65ba
commit 8beee290d8

View file

@ -2095,10 +2095,10 @@ FileUpload = xe.createPlugin('FileUpload', {
activate : function() { activate : function() {
var self = this, app = this.oApp, $tb = app.$toolbar; var self = this, app = this.oApp, $tb = app.$toolbar;
this.$modal_box = app.$root.find('div.xdlw'); this.$modal_box = app.$root.find('div.xdmw');
if (this.$modal_box.length) { if (this.$modal_box.length) {
this.$attach_list = this.$modal_box.find('div.xdal'); this.$attach_list = this.$modal_box.find('div.al');
this.$attach_list this.$attach_list
.mousedown(function(event){ event.stopPropagation(); }) .mousedown(function(event){ event.stopPropagation(); })
.find('button.btn.cs') .find('button.btn.cs')
@ -2304,9 +2304,9 @@ FileUpload = xe.createPlugin('FileUpload', {
$item.find('button.ob > img') $item.find('button.ob > img')
.load(function(){ .load(function(){
if(this.width > this.height){ if(this.width > this.height){
$(this).css('width', '98px'); $(this).css('width', '100%');
} else { } else {
$(this).css('height', '98px'); $(this).css('height', '100%');
} }
}) })
.attr('src', f.download_url); .attr('src', f.download_url);