Only provide save for filemanager editor

This commit is contained in:
Johannes Zellner
2020-09-01 12:39:02 +02:00
parent d7287b5c3c
commit 497be710a7
2 changed files with 3 additions and 13 deletions

View File

@@ -467,7 +467,7 @@ app.controller('FileManagerController', ['$scope', '$timeout', 'Client', functio
});
},
save: function (callback) {
save: function () {
$scope.textEditor.busy = true;
var newContent = $scope.textEditor.editor.getValue();
@@ -476,16 +476,7 @@ app.controller('FileManagerController', ['$scope', '$timeout', 'Client', functio
Client.filesUpload($scope.appId, filePath, file, function () {}, function (error) {
$scope.textEditor.busy = false;
if (error) return Client.error(error);
if (callback) callback();
});
},
saveAndClose: function () {
$scope.textEditor.save(function () {
$scope.textEditor.close();
});
},