mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-03 07:55:36 +00:00
update cp/mv file/dir
This commit is contained in:
@@ -1182,15 +1182,15 @@ define([
|
||||
post_url,
|
||||
post_data;
|
||||
|
||||
if (op == 'mv') {
|
||||
url_obj.name = obj_type == 'dir' ? 'mv_dir' : 'mv_file';
|
||||
} else {
|
||||
url_obj.name = obj_type == 'dir' ? 'cp_dir' : 'cp_file';
|
||||
}
|
||||
post_url = Common.getUrl(url_obj) + '?path=' + encodeURIComponent(cur_path) + '&obj_name=' + encodeURIComponent(obj_name);
|
||||
post_url = Common.getUrl({'name': 'copy_move_task'});
|
||||
post_data = {
|
||||
'dst_repo': dst_repo,
|
||||
'dst_path': dst_path
|
||||
'src_repo_id': dirents.repo_id,
|
||||
'src_parent_dir': cur_path,
|
||||
'src_dirent_name': obj_name,
|
||||
'dst_repo_id': dst_repo,
|
||||
'dst_parent_dir': dst_path,
|
||||
'operation': op == 'mv' ? 'move' : 'copy',
|
||||
'dirent_type': obj_type == 'dir' ? 'dir' : 'file'
|
||||
};
|
||||
var after_op_success = function (data) {
|
||||
var det_text = op == 'mv' ? gettext("Moving file %(index)s of %(total)s") : gettext("Copying file %(index)s of %(total)s");
|
||||
|
Reference in New Issue
Block a user