kazui hitoshi пре 3 година
родитељ
комит
9ecc94af72
2 измењених фајлова са 4 додато и 3 уклоњено
  1. 3 3
      src/main/webapp/WEB-INF/view/searchResults.jsp
  2. 1 0
      src/main/webapp/js/search.js

+ 3 - 3
src/main/webapp/WEB-INF/view/searchResults.jsp

@@ -1,6 +1,5 @@
 <%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
 <%-- query matched some document --%>
-<script type="text/javascript" src="${fe:url('/js/clipboard.min.js')}"></script>
 <div id="subheader" class="row">
 	<div class="col">
 		<p>
@@ -42,7 +41,7 @@
 				<h3 class="title text-truncate">
 					<a class="link" href="${doc.url_link}" data-uri="${doc.url_link}"
 						data-id="${doc.doc_id}" data-order="${s.index}">${doc.content_title}</a>
-				</h3>									
+				</h3>
 				<div class="body">
 					<c:if test="${thumbnailSupport && !empty doc.thumbnail}">
 					<div class="mr-3">
@@ -232,4 +231,5 @@
 			</c:if>
 		</ul>
 	</nav>
-</div>
+</div>
+<script type="text/javascript" src="${fe:url('/js/clipboard.min.js')}"></script>

+ 1 - 0
src/main/webapp/js/search.js

@@ -5,6 +5,7 @@ $(function() {
       $searchButton = $("#searchButton"),
       contextPath = $("#contextPath").val(),
       loadImage;
+
   $("#searchForm").on("submit", function(e) {
     $searchButton.attr("disabled", true);
     setTimeout(function() {