From 8e1a5a0221f1cbe3bc618d8012b167cad9e521cf Mon Sep 17 00:00:00 2001 From: ARvind Tiwari Date: Tue, 25 Jul 2017 19:44:19 +0530 Subject: [PATCH] added back href to links, removed blinking --- datacenterlight/static/datacenterlight/js/main.js | 3 ++- .../templates/datacenterlight/includes/_navbar.html | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/datacenterlight/static/datacenterlight/js/main.js b/datacenterlight/static/datacenterlight/js/main.js index e19f3ddd..2c66b13f 100644 --- a/datacenterlight/static/datacenterlight/js/main.js +++ b/datacenterlight/static/datacenterlight/js/main.js @@ -86,7 +86,8 @@ } function _initNavUrl() { - $('.url').click(function () { + $('.url').click(function (event) { + event.preventDefault() var href = $(this).attr('data-url'); $('.navbar-collapse').removeClass('in'); $('.navbar-collapse').addClass('collapsing'); diff --git a/datacenterlight/templates/datacenterlight/includes/_navbar.html b/datacenterlight/templates/datacenterlight/includes/_navbar.html index da3e672c..e1ce56a1 100644 --- a/datacenterlight/templates/datacenterlight/includes/_navbar.html +++ b/datacenterlight/templates/datacenterlight/includes/_navbar.html @@ -27,9 +27,9 @@