1
0
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:
llj
2017-08-15 15:43:37 +08:00
parent f937dbe0b7
commit cb0aacd89d
8 changed files with 60 additions and 117 deletions

View File

@@ -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();
}
});