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

add amdin system library upload api

This commit is contained in:
lian
2017-07-03 14:42:12 +08:00
parent 101a2015ba
commit 46a5473326
9 changed files with 139 additions and 17 deletions

View File

@@ -54,17 +54,17 @@ define([
new_dirent.set('last_update', new Date().getTime());
var view = new DirentView({model: new_dirent, dirView: this});
var new_file = view.render().el;
if ($('tr', this.$tableBody).length == 0) {
if ($('tr', this.$tableBody).length == 0) {
this.$tableBody.append(new_file);
} else {
var dirs = this.dir.where({'is_file':false});
if (dirs.length == 0) {
if (dirs.length == 0) {
this.$tableBody.prepend(new_file);
} else {
// put the new file after the last dir
$($('tr', this.$tableBody)[dirs.length - 1]).after(new_file);
}
}
}
}
},
newDir: function() {