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

Commit

Permalink
Unset highlight syntax when a folder is selected
Browse files Browse the repository at this point in the history
When a folder is selected the message
"Please select a file to view its contents" appears with mixed
colors. With this patch this message appears with white color only.

Signed-off-by: Bruno Bottazzini <bruno.bottazzini@intel.com>
  • Loading branch information
Bruno Bottazzini committed Apr 20, 2016
1 parent 3c7de4e commit d15ec12
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions client/js/controllers/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@
});
$scope.root = false;
} else {
editor.getSession().setMode();
if (data.node.parent === "#") {
$scope.root = true;
$scope.setEditorContent('Please select a file to view its contents', previousContent, filePath);
Expand Down

0 comments on commit d15ec12

Please sign in to comment.