...
|
...
|
@@ -112,7 +112,7 @@ components.prototype={ |
|
|
if($(this).hasClass("excel-upload")) {
|
|
|
return true ;
|
|
|
}
|
|
|
|
|
|
|
|
|
$(this).wrap("<div class='fileinput-button'></div>");
|
|
|
var parent=$(this).parent(".fileinput-button");
|
|
|
|
...
|
...
|
@@ -138,7 +138,7 @@ components.prototype={ |
|
|
datas:response.datas
|
|
|
});
|
|
|
var parent=$(this).parent(".fileinput-button");
|
|
|
if(response.data.length==1&&response.data){
|
|
|
if(response.data){
|
|
|
parent.find(".fileinput-button-icon").html("<img src='"+response.data+"' width='100%' height='100%'/>");
|
|
|
$(this).attr("value", response.data);
|
|
|
}
|
...
|
...
|
@@ -219,7 +219,6 @@ components.prototype={ |
|
|
},
|
|
|
__listen: function(key, o, callback) {
|
|
|
var __self = this;
|
|
|
console.log(__self.registerEvent[key]);
|
|
|
if (typeof __self.registerEvent[key]=="function") {
|
|
|
__self.registerEvent[key](o);
|
|
|
|
...
|
...
|
|