1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-18 00:00:00 +00:00

[fileupload] use dropdown

This commit is contained in:
llj
2016-04-18 11:57:55 +08:00
parent 3867c1416c
commit 32375abcb6
4 changed files with 24 additions and 30 deletions

View File

@@ -12,10 +12,11 @@ define([
'app/views/dirent',
'app/views/dirent-grid',
'app/views/fileupload',
'app/views/share'
'app/views/share',
'app/views/widgets/dropdown'
], function($, progressbar, magnificPopup, simplemodal, _, Backbone, Common,
FileTree, Cookies, DirentCollection, DirentView, DirentGridView,
FileUploadView, ShareView) {
FileUploadView, ShareView, DropdownView) {
'use strict';
var DirView = Backbone.View.extend({
@@ -205,6 +206,10 @@ define([
this.render_dirents_slice(this.dir.last_start, this.dir.limit);
this.fileUploadView.setFileInput();
this.upload_dropdown = new DropdownView({
el: this.$('#advanced-upload')
});
this.getImageThumbnail();
},