prevent default events

This commit is contained in:
Alex Wolfe 2015-04-28 14:40:49 -07:00
parent aa3c471fed
commit cd4f0f4e8d
1 changed files with 3 additions and 0 deletions

View File

@ -29,16 +29,19 @@ angularIO.controller('AppCtrl', ['$scope', '$mdDialog', function($scope, $mdDial
// TOGGLE MAIN NAV (TOP) ON MOBILE
$scope.toggleDocsMenu = function(event) {
event.preventDefault();
$scope.showDocsNav = !$scope.showDocsNav;
};
// TOGGLE DOCS NAV
$scope.toggleMainMenu = function(event) {
event.preventDefault();
$scope.showMainNav = !$scope.showMainNav;
};
// TOGGLE DOCS VERSION & LANGUAGE
$scope.toggleVersionMenu = function(event) {
event.preventDefault();
$scope.showMenu = !$scope.showMenu;
};