[Mobile] Reformat of menu

Reformats menu to move the
arrow to the right and now
that is what selects an object.
Pressing the actual menu item will
enact the dropdown menu. This
only happens on mobile platforms.
This commit is contained in:
Shivam Dave
2015-07-21 13:29:45 -07:00
parent dcdafbaebf
commit 56e51ea32a
9 changed files with 204 additions and 27 deletions

View File

@ -50,7 +50,7 @@ define(
* expand-to-show-navigated-object behavior.)
* @constructor
*/
function TreeNodeController($scope, $timeout) {
function TreeNodeController($scope, $timeout, queryService) {
var selectedObject = ($scope.ngModel || {}).selectedObject,
isSelected = false,
hasBeenExpanded = false;
@ -86,7 +86,11 @@ define(
$timeout(function () { hasBeenExpanded = true; }, 0);
}
}
function checkMobile() {
return queryService.isMobile();
}
// Consider the currently-navigated object and update
// parameters which support display.
function checkSelection() {
@ -150,6 +154,9 @@ define(
* lazy loading of the node's subtree.
*/
trackExpansion: trackExpansion,
checkMobile: checkMobile,
/**
* Check if this not has ever been expanded.
* @returns true if it has been expanded