From 7b4ef142f56c11df1485a2c2e45b83b0f47fde82 Mon Sep 17 00:00:00 2001 From: Sarah Hale Date: Tue, 30 Jun 2015 13:32:25 -0700 Subject: [PATCH] [Browse] Fixed tree nodes Realized that this refers to a previously hidden arrow at the main title at the top of the page. Reverted the changes done to the tree nodes. #33. --- .../general/res/templates/tree-node.html | 2 +- .../src/controllers/TreeNodeController.js | 22 +------------------ 2 files changed, 2 insertions(+), 22 deletions(-) diff --git a/platform/commonUI/general/res/templates/tree-node.html b/platform/commonUI/general/res/templates/tree-node.html index e61cd405cd..f584befb1a 100644 --- a/platform/commonUI/general/res/templates/tree-node.html +++ b/platform/commonUI/general/res/templates/tree-node.html @@ -27,7 +27,7 @@ > {{toggle.isActive() ? "v" : ">"}} diff --git a/platform/commonUI/general/src/controllers/TreeNodeController.js b/platform/commonUI/general/src/controllers/TreeNodeController.js index a51d85448e..77124bb6e3 100644 --- a/platform/commonUI/general/src/controllers/TreeNodeController.js +++ b/platform/commonUI/general/src/controllers/TreeNodeController.js @@ -139,20 +139,6 @@ define( checkSelection(); } - // If we are in edit mode, then a left-click on the - // down arrow next to a domain object's title should display - // a context menu - function contextMenu() { - //console.log('contextMenu() called'); - - if ($scope.domainObject.hasCapability('editor') || true) { - //console.log('contextMenu() believes in edit mode'); - - $rootScope.$broadcast('leftContextual'); - console.log('contextMenu() broadcasted from root'); - } - } - // Listen for changes which will effect display parameters $scope.$watch("ngModel.selectedObject", setSelection); $scope.$watch("domainObject", checkSelection); @@ -180,13 +166,7 @@ define( */ isSelected: function () { return isSelected; - }, - /** - * This method should be called when the down arrow next - * to a domain object's title is (left) clicked. If in edit - * mode, this activates a context menu. - */ - contextMenu: contextMenu + } }; }