NIHVIVO-193 Allow for form-specific Javascript to be loaded into the head of form pages.
This commit is contained in:
parent
f90d5470fa
commit
816111cb30
1 changed files with 16 additions and 3 deletions
|
@ -1,7 +1,9 @@
|
|||
<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%>
|
||||
|
||||
<%@ page import="java.util.List" %>
|
||||
<%@ page import="edu.cornell.mannlib.vitro.webapp.filters.VitroRequestPrep"%>
|
||||
|
||||
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
|
||||
<%@page import="edu.cornell.mannlib.vitro.webapp.filters.VitroRequestPrep"%>
|
||||
|
||||
<c:set var='themeDir'><c:out value='${portalBean.themeDir}'/></c:set>
|
||||
|
||||
|
@ -67,7 +69,18 @@
|
|||
<% String useAutoComplete = (useAutoComplete=request.getParameter("useAutoComplete")) != null && !(useAutoComplete.equals("")) ? useAutoComplete : "false";
|
||||
if (useAutoComplete.equalsIgnoreCase("true")) { %>
|
||||
<link rel="stylesheet" type="text/css" href="../js/jquery_plugins/jquery-autocomplete/jquery.autocomplete.css"/>
|
||||
<% } %>
|
||||
<% }
|
||||
|
||||
|
||||
List<String> customJs = (List<String>)request.getAttribute("customJs");
|
||||
if (customJs != null) {
|
||||
for (String jsFile : customJs ){
|
||||
%>
|
||||
<script type="text/javascript" src="<%= jsFile %>"></script>
|
||||
<% }
|
||||
}
|
||||
%>
|
||||
|
||||
|
||||
<!-- <link rel="stylesheet" type="text/css" href="../js/jquery_plugins/ui.datepicker.css"/> -->
|
||||
<link rel="stylesheet" type="text/css" href="../js/jquery_plugins/thickbox/thickbox.css"/>
|
||||
|
|
Loading…
Add table
Reference in a new issue