From 34ecb654571b05a81202269de99711b24f363062 Mon Sep 17 00:00:00 2001 From: chinafzy Date: Fri, 28 Mar 2014 17:00:52 +0800 Subject: [PATCH] Fix these issues: 1. Active status in nav bar does not show. 2. Active status in sample tab bar does not show correctly. The tab label shows active, but the content does not show. 3. Page width is greater than current screen. A X-scroll always shows there. Signed-off-by: chinafzy --- .../webapp/WEB-INF/decorators/main-layout.jsp | 13 ++++++++---- .../WEB-INF/views/errors-validations.jsp | 2 +- src/main/webapp/WEB-INF/views/getstarted.jsp | 2 +- src/main/webapp/WEB-INF/views/tags/navbar.jsp | 20 +++++++++++++------ src/main/webapp/resources/js/active-first.js | 8 ++++++++ 5 files changed, 33 insertions(+), 12 deletions(-) create mode 100644 src/main/webapp/resources/js/active-first.js diff --git a/src/main/webapp/WEB-INF/decorators/main-layout.jsp b/src/main/webapp/WEB-INF/decorators/main-layout.jsp index 095100d4e..63f82c57c 100644 --- a/src/main/webapp/WEB-INF/decorators/main-layout.jsp +++ b/src/main/webapp/WEB-INF/decorators/main-layout.jsp @@ -13,6 +13,8 @@ rel="stylesheet" type="text/css" /> " rel="stylesheet" type="text/css" /> + + + <%} %> @@ -64,10 +69,10 @@ - - + + diff --git a/src/main/webapp/WEB-INF/views/errors-validations.jsp b/src/main/webapp/WEB-INF/views/errors-validations.jsp index cec8e1418..e5f981462 100644 --- a/src/main/webapp/WEB-INF/views/errors-validations.jsp +++ b/src/main/webapp/WEB-INF/views/errors-validations.jsp @@ -8,7 +8,7 @@
diff --git a/src/main/webapp/WEB-INF/views/getstarted.jsp b/src/main/webapp/WEB-INF/views/getstarted.jsp index 8d5984cda..b2899bfe4 100644 --- a/src/main/webapp/WEB-INF/views/getstarted.jsp +++ b/src/main/webapp/WEB-INF/views/getstarted.jsp @@ -8,7 +8,7 @@
diff --git a/src/main/webapp/resources/js/active-first.js b/src/main/webapp/resources/js/active-first.js new file mode 100644 index 000000000..b5557df25 --- /dev/null +++ b/src/main/webapp/resources/js/active-first.js @@ -0,0 +1,8 @@ +/** + * + */ +$(function() { + var tab0 = $('#demo-tab > ul > li > a:eq(0)'); + if (tab0) + tab0.tab('show'); +});