Update file size after save in filemanager
This commit is contained in:
@@ -585,6 +585,9 @@ app.controller('FileManagerController', ['$scope', '$translate', '$timeout', 'Cl
|
||||
Client.filesUpload($scope.id, $scope.type, filePath, file, true, function () {}, function (error) {
|
||||
if (error) return Client.error(error);
|
||||
|
||||
// update size immediately for the list view to avoid reloading the whole list
|
||||
$scope.textEditor.entry.size = file.size;
|
||||
|
||||
$timeout(function () {
|
||||
$scope.textEditor.unsaved = false;
|
||||
$scope.textEditor.busy = false;
|
||||
|
||||
Reference in New Issue
Block a user