entry.filePath -> entry.fileName
This commit is contained in:
@@ -56,7 +56,7 @@ app.controller('FileManagerController', ['$scope', 'Client', function ($scope, C
|
||||
};
|
||||
|
||||
$scope.open = function (entry) {
|
||||
var filePath = sanitize($scope.cwd + '/' + entry.filePath);
|
||||
var filePath = sanitize($scope.cwd + '/' + entry.fileName);
|
||||
|
||||
if (entry.isDirectory) {
|
||||
setDirectory(filePath);
|
||||
@@ -170,7 +170,7 @@ app.controller('FileManagerController', ['$scope', 'Client', function ($scope, C
|
||||
show: function (entry) {
|
||||
$scope.renameEntry.error = null;
|
||||
$scope.renameEntry.entry = entry;
|
||||
$scope.renameEntry.newName = entry.filePath;
|
||||
$scope.renameEntry.newName = entry.fileName;
|
||||
$scope.renameEntry.busy = false;
|
||||
|
||||
$('#renameEntryModal').modal('show');
|
||||
@@ -179,7 +179,7 @@ app.controller('FileManagerController', ['$scope', 'Client', function ($scope, C
|
||||
submit: function () {
|
||||
$scope.renameEntry.busy = true;
|
||||
|
||||
var oldFilePath = sanitize($scope.cwd + '/' + $scope.renameEntry.entry.filePath);
|
||||
var oldFilePath = sanitize($scope.cwd + '/' + $scope.renameEntry.entry.fileName);
|
||||
var newFilePath = sanitize($scope.cwd + '/' + $scope.renameEntry.newName);
|
||||
|
||||
Client.filesRename($scope.appId, oldFilePath, newFilePath, function (error, result) {
|
||||
@@ -210,7 +210,7 @@ app.controller('FileManagerController', ['$scope', 'Client', function ($scope, C
|
||||
submit: function () {
|
||||
$scope.entryRemove.busy = true;
|
||||
|
||||
var filePath = sanitize($scope.cwd + '/' + $scope.entryRemove.entry.filePath);
|
||||
var filePath = sanitize($scope.cwd + '/' + $scope.entryRemove.entry.fileName);
|
||||
|
||||
Client.filesRemove($scope.appId, filePath, function (error, result) {
|
||||
$scope.entryRemove.busy = false;
|
||||
|
||||
Reference in New Issue
Block a user