1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-05 08:53:14 +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

@@ -253,10 +253,10 @@ define([
if (op_type == 'mv') { if (op_type == 'mv') {
//form_hd = obj_type == 'dir'? "{% trans "Move Directory" %}":"{% trans "Move File" %}"; //form_hd = obj_type == 'dir'? "{% trans "Move Directory" %}":"{% trans "Move File" %}";
form_hd = obj_type == 'dir'? "Move Directory" : "Move File"; form_hd = obj_type == 'dir' ? "Move Directory" : "Move File";
} else { } else {
//form_hd = obj_type == 'dir'? "{% trans "Copy Directory" %}":"{% trans "Copy File" %}"; //form_hd = obj_type == 'dir'? "{% trans "Copy Directory" %}":"{% trans "Copy File" %}";
form_hd = obj_type == 'dir'? "Copy Directory" : "Copy File"; form_hd = obj_type == 'dir' ? "Copy Directory" : "Copy File";
} }
//op_detail = op_type == 'mv' ? "{% trans "Move %(name)s to:" %}" : "{% trans "Copy %(name)s to:" %}"; //op_detail = op_type == 'mv' ? "{% trans "Move %(name)s to:" %}" : "{% trans "Copy %(name)s to:" %}";
@@ -269,7 +269,7 @@ define([
$('input[name="obj_name"]', form).val(obj_name); $('input[name="obj_name"]', form).val(obj_name);
form.data('op_obj', dirent); form.data('op_obj', dirent);
FileTree.render_jstree_for_cur_path({ FileTree.renderTreeForPath({
repo_name: this.dirView.dir.repo_name, repo_name: this.dirView.dir.repo_name,
repo_id: this.dirView.dir.repo_id, repo_id: this.dirView.dir.repo_id,
path: this.dirView.dir.path, path: this.dirView.dir.path,

View File

@@ -55,7 +55,7 @@ define([
path.shift(); path.shift();
path = '/' + path.join('/') + '/'; 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) { 'success': function(data) {
var items = []; 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'), var form = $('#mv-form'),
container = $('#current-repo-dirs'), container = $('#current-repo-dirs'),
loading_tip = container.prev(); loading_tip = container.prev();