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

[backbone] Fix indentation for dirents.js and file-tree.js

This commit is contained in:
Daniel Pan
2015-01-28 21:18:18 +08:00
parent 167eb79888
commit cf91a39f84
2 changed files with 459 additions and 458 deletions

View File

@@ -269,7 +269,7 @@ define([
$('input[name="obj_name"]', form).val(obj_name);
form.data('op_obj', dirent);
FileTree.render_jstree_for_cur_path({
FileTree.renderTreeForPath({
repo_name: this.dirView.dir.repo_name,
repo_id: this.dirView.dir.repo_id,
path: this.dirView.dir.path,

View File

@@ -55,7 +55,7 @@ define([
path.shift();
path = '/' + path.join('/') + '/';
}
return container.data('site_root') + 'ajax/repo/' + repo_id + '/dirents/?path=' + e(path);
return app.config.siteRoot + 'ajax/repo/' + repo_id + '/dirents/?path=' + e(path);
},
'success': function(data) {
var items = [];
@@ -188,7 +188,8 @@ define([
});
},
render_jstree_for_cur_path: function(options) {
renderTreeForPath: function(options) {
// check templates/snippets/lib_op_popups.html for the template
var form = $('#mv-form'),
container = $('#current-repo-dirs'),
loading_tip = container.prev();