HBASE-21404 Master/RS navbar active state does not work

Signed-off-by: Jingyun Tian <tianjy@apache.org>
This commit is contained in:
Nihal Jain 2019-01-27 16:50:14 +05:30 committed by Jingyun Tian
parent c90e9ff5ef
commit 1c71544497
2 changed files with 12 additions and 0 deletions

View File

@ -20,5 +20,11 @@
<script src="/static/js/jquery.min.js" type="text/javascript"></script>
<script src="/static/js/bootstrap.min.js" type="text/javascript"></script>
<script src="/static/js/tab.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
$('li.active').removeClass('active');
$('a[href="' + location.pathname + '"]').closest('li').addClass('active');
});
</script>
</body>
</html>

View File

@ -20,5 +20,11 @@
<script src="/static/js/jquery.min.js" type="text/javascript"></script>
<script src="/static/js/bootstrap.min.js" type="text/javascript"></script>
<script src="/static/js/tab.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
$('li.active').removeClass('active');
$('a[href="' + location.pathname + '"]').closest('li').addClass('active');
});
</script>
</body>
</html>