[Mobile] Browse Object

Added comments and removed unnecessary
commented out code.
This commit is contained in:
Shivam Dave 2015-08-28 13:56:48 -07:00
parent 00f71d3882
commit 08794346c8

View File

@ -65,17 +65,10 @@ define(
}
}
//// If there is a defined opener, assume that the window was opened
//// by choosing 'Open in a new tab'
//if ($window.opener) {
// // The desired default for this is to have a closed left pane
// $scope.ngModel.leftPane = false;
//} else {
// // Otherwise, start the application with an open left pane
// $scope.ngModel.leftPane = true;
//}
// If there is a defined opener or user is on mobile
// openned window will start with tree pane closed
$scope.ngModel.leftPane = ($window.opener || agentService.isMobile(navigator.userAgent)) ? false : true;
// The object inspector by default always starts closed
$scope.ngModel.rightPane = false;