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 <kamidi@live.com>
  • Loading branch information
Kamidi Preetham authored and Bruno Bottazzini committed May 13, 2016
1 parent 6697b67 commit 570dd52
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 @@ -211,6 +211,7 @@
if(close_id) {
$scope.saveFile(savePath, previousContent);
editor.getSession().setValue(content);
$scope.refreshTree();
} else {
editor.getSession().setValue(content);
}
Expand Down Expand Up @@ -502,6 +503,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 570dd52

Please sign in to comment.