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

Commit

Permalink
fix: change variables name when creating a file
Browse files Browse the repository at this point in the history
newFile was a conflict var name

Signed-off-by: Bruno Bottazzini <bruno.bottazzini@intel.com>
  • Loading branch information
Bruno Bottazzini committed Apr 15, 2016
1 parent 793ea64 commit 37babfc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions client/js/controllers/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@
dialog.dialog("open");
};

$scope.newFile = function () {
$scope.createFile = function () {
var file = filePath;
if (file) {
if (isLeaf) {
Expand Down Expand Up @@ -819,7 +819,7 @@
$scope.newFolder();
break;
case "file.new":
$scope.newFile();
$scope.createFile();
break;
case "file.save":
$scope.saveFileManually();
Expand Down
2 changes: 1 addition & 1 deletion server/views/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@
<ul class="dropdown-menu" role="menu">
<li><a class="pointer" role="menuitem" tabindex="1" ng-click="createProject()">New project</a></li>
<li><a class="pointer" role="menuitem" tabindex="1" ng-click="newFolder()">Create folder</a></li>
<li><a class="pointer" role="menuitem" tabindex="2" ng-click="newFile()">Create file</a></li>
<li><a class="pointer" role="menuitem" tabindex="2" ng-click="createFile()">Create file</a></li>
<li><a class="pointer" role="menuitem" tabindex="3" ng-click="remove()">Remove</a></li>
</ul>
</div>
Expand Down

0 comments on commit 37babfc

Please sign in to comment.