HBASE-21404 Master/RS navbar active state does not work
Signed-off-by: Jingyun Tian <tianjy@apache.org>
This commit is contained in:
parent
c90e9ff5ef
commit
1c71544497
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue