Skip to content
This repository has been archived by the owner on Jun 27, 2019. It is now read-only.

editor: fix remove-file issue #102

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions client/js/controllers/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@
if(close_id) {
$scope.saveFile(savePath, previousContent);
editor.getSession().setValue(content);
$scope.refreshTree();
} else {
editor.getSession().setValue(content);
}
Expand Down Expand Up @@ -500,6 +501,7 @@
//pop * from the string
if ($scope.fileName) {
$scope.fileName = $scope.fileName.substring(0, $scope.fileName.length-1);
$scope.refreshTree();
}
}).error(function(){
alert("Failed to save file on server. Try again.");
Expand Down