manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kish...@apache.org
Subject svn commit: r1794110 - /manifoldcf/trunk/framework/crawler-ui/src/main/webapp/index.jsp
Date Fri, 05 May 2017 21:46:42 GMT
Author: kishore
Date: Fri May  5 21:46:42 2017
New Revision: 1794110

URL: http://svn.apache.org/viewvc?rev=1794110&view=rev
Log:
Force UI to fetch latest mcf.js

Modified:
    manifoldcf/trunk/framework/crawler-ui/src/main/webapp/index.jsp

Modified: manifoldcf/trunk/framework/crawler-ui/src/main/webapp/index.jsp
URL: http://svn.apache.org/viewvc/manifoldcf/trunk/framework/crawler-ui/src/main/webapp/index.jsp?rev=1794110&r1=1794109&r2=1794110&view=diff
==============================================================================
--- manifoldcf/trunk/framework/crawler-ui/src/main/webapp/index.jsp (original)
+++ manifoldcf/trunk/framework/crawler-ui/src/main/webapp/index.jsp Fri May  5 21:46:42 2017
@@ -22,6 +22,10 @@
 */
 %>
 
+<%
+  String mcfVersion = org.apache.manifoldcf.core.system.ManifoldCF.getMcfVersion();
+%>
+
 <?xml version="1.0" encoding="utf-8"?>
 <!DOCTYPE html>
 <html lang="en">
@@ -76,7 +80,7 @@
         </section>
       </div>
       <footer class="main-footer">
-        <div class="pull-right hidden-xs"><b>Version</b>&nbsp;<%=
org.apache.manifoldcf.core.system.ManifoldCF.getMcfVersion() %></div>
+        <div class="pull-right hidden-xs"><b>Version</b>&nbsp;<%=
mcfVersion %></div>
         <strong><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"index.Copyright")%>&nbsp;&nbsp;&nbsp;&nbsp;<a
target="_blank" href="https://www.apache.org/"><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"index.TheApacheSoftwareFoundation")%></a></strong>
       </footer>
     </div>
@@ -110,7 +114,7 @@
     <script src="bootstrap-select/js/bootstrap-select.min.js" type="text/javascript"></script>
     <script src="javascript/jquery.slimscroll.min.js" type="text/javascript"></script>
     <!-- ManifoldCF -->
-    <script src="javascript/mcf.js" type="text/javascript"></script>
+    <script src="javascript/mcf.js?v=<%= mcfVersion %>" type="text/javascript"></script>
 <%
   String reqPage = request.getParameter("p");
   if (reqPage != null && reqPage.length() > 0)



Mime
View raw message