mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-03 07:55:36 +00:00
[UI] modified some 'file upload' buttons
This commit is contained in:
@@ -20,9 +20,14 @@ define([
|
||||
},
|
||||
|
||||
events: {
|
||||
'click .license-file-upload-btn': 'uploadFile',
|
||||
'change .license-file-upload-input': 'uploadLicenseFile'
|
||||
},
|
||||
|
||||
uploadFile: function() {
|
||||
this.$('.license-file-upload-input').trigger('click');
|
||||
},
|
||||
|
||||
uploadLicenseFile: function() {
|
||||
var $input = this.$('.license-file-upload-input');
|
||||
var file;
|
||||
@@ -92,22 +97,11 @@ define([
|
||||
this.showSysinfo();
|
||||
},
|
||||
|
||||
setLicenceUploadUI: function() {
|
||||
var $btn = this.$('.license-file-upload-btn');
|
||||
this.$('.license-file-upload').css({
|
||||
'width': $btn.outerWidth()
|
||||
});
|
||||
this.$('.license-file-upload-input').css({
|
||||
'height': $btn.outerHeight()
|
||||
});
|
||||
},
|
||||
|
||||
reset: function() {
|
||||
this.$loadingTip.hide();
|
||||
var json_data = this.sysinfo.toJSON();
|
||||
json_data['formatted_storage'] = Common.quotaSizeFormat(json_data['total_storage'], 1)
|
||||
this.$sysinfo.html(this.conTemplate(json_data));
|
||||
this.setLicenceUploadUI();
|
||||
}
|
||||
|
||||
});
|
||||
|
Reference in New Issue
Block a user