You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by ti...@apache.org on 2019/01/31 08:33:59 UTC
[hbase] branch master updated: HBASE-21404 Master/RS navbar active
state does not work
This is an automated email from the ASF dual-hosted git repository.
tianjy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/master by this push:
new 1c71544 HBASE-21404 Master/RS navbar active state does not work
1c71544 is described below
commit 1c71544497ace14e669141e925133aa358d89830
Author: Nihal Jain <ni...@gmail.com>
AuthorDate: Sun Jan 27 16:50:14 2019 +0530
HBASE-21404 Master/RS navbar active state does not work
Signed-off-by: Jingyun Tian <ti...@apache.org>
---
hbase-server/src/main/resources/hbase-webapps/master/footer.jsp | 6 ++++++
.../src/main/resources/hbase-webapps/regionserver/footer.jsp | 6 ++++++
2 files changed, 12 insertions(+)
diff --git a/hbase-server/src/main/resources/hbase-webapps/master/footer.jsp b/hbase-server/src/main/resources/hbase-webapps/master/footer.jsp
index 1e078d6..53a7d0c 100644
--- a/hbase-server/src/main/resources/hbase-webapps/master/footer.jsp
+++ b/hbase-server/src/main/resources/hbase-webapps/master/footer.jsp
@@ -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>
diff --git a/hbase-server/src/main/resources/hbase-webapps/regionserver/footer.jsp b/hbase-server/src/main/resources/hbase-webapps/regionserver/footer.jsp
index 1e078d6..53a7d0c 100644
--- a/hbase-server/src/main/resources/hbase-webapps/regionserver/footer.jsp
+++ b/hbase-server/src/main/resources/hbase-webapps/regionserver/footer.jsp
@@ -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>