mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-03 16:10:26 +00:00
use new v2.1 file api when rename/lock/unlock/del file
This commit is contained in:
@@ -138,7 +138,7 @@ define([
|
||||
url: Common.getUrl({
|
||||
name: 'lock_or_unlock_file',
|
||||
repo_id: dir.repo_id
|
||||
}),
|
||||
}) + '?p=' + encodeURIComponent((filepath)),
|
||||
type: 'PUT',
|
||||
dataType: 'json',
|
||||
data: {
|
||||
|
@@ -259,7 +259,7 @@ define([
|
||||
var after_op_error = function(xhr) {
|
||||
var err_msg;
|
||||
if (xhr.responseText) {
|
||||
err_msg = $.parseJSON(xhr.responseText).error;
|
||||
err_msg = $.parseJSON(xhr.responseText).error_msg;
|
||||
} else {
|
||||
err_msg = gettext("Failed. Please check the network.");
|
||||
}
|
||||
|
Reference in New Issue
Block a user