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:
@@ -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,
|
||||
|
@@ -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();
|
||||
|
Reference in New Issue
Block a user