[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.
This commit is contained in:
Sarah Hale 2015-06-30 13:32:25 -07:00
parent 57eefd7316
commit 7b4ef142f5
2 changed files with 2 additions and 22 deletions

View File

@ -27,7 +27,7 @@
>
<span
class='ui-symbol view-control'
ng-click="toggle.toggle(); treeNode.trackExpansion() ; treeNode.contextMenu()"
ng-click="toggle.toggle(); treeNode.trackExpansion()"
ng-if="model.composition !== undefined"
>
{{toggle.isActive() ? "v" : ">"}}

View File

@ -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
}
};
}