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

Commit

Permalink
editor:fix remove-file issue
Browse files Browse the repository at this point in the history
Signed-off-by: Kamidi Preetham <[email protected]>
  • Loading branch information
Kamidi Preetham committed May 12, 2016
1 parent 3fb7474 commit b4e8f39
Showing 1 changed file with 2 additions and 0 deletions.
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

0 comments on commit b4e8f39

Please sign in to comment.