From cd4f0f4e8d5f582b29fd6767fa2eb2e724b85f9d Mon Sep 17 00:00:00 2001 From: Alex Wolfe Date: Tue, 28 Apr 2015 14:40:49 -0700 Subject: [PATCH] prevent default events --- public/resources/js/site.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public/resources/js/site.js b/public/resources/js/site.js index 0d3820dc84..54e8d6a4db 100644 --- a/public/resources/js/site.js +++ b/public/resources/js/site.js @@ -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; };