Skip to content

Commit 3d655ef

Browse files
marevolclaude
andauthored
Modernize suggestor.js implementation and simplify script tags (#2963)
- Remove unnecessary type="text/javascript" from script tags in index.jsp (HTML5 default) - Refactor suggestor.js with modern jQuery event handling (.on() instead of .hover()) - Replace inefficient polling (setInterval) with input event listener for better performance - Add debouncing (300ms) to reduce unnecessary AJAX calls - Improve code formatting and readability with consistent indentation 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude <[email protected]>
1 parent abf546f commit 3d655ef

File tree

2 files changed

+309
-320
lines changed

2 files changed

+309
-320
lines changed

src/main/webapp/WEB-INF/view/index.jsp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -166,10 +166,10 @@ ${fe:html(true)}
166166
<jsp:include page="footer.jsp" />
167167
</la:form>
168168
<input type="hidden" id="contextPath" value="${contextPath}" />
169-
<script type="text/javascript" src="${fe:url('/js/jquery-3.7.1.min.js')}"></script>
170-
<script type="text/javascript" src="${fe:url('/js/popper.min.js')}"></script>
171-
<script type="text/javascript" src="${fe:url('/js/bootstrap.min.js')}"></script>
172-
<script type="text/javascript" src="${fe:url('/js/suggestor.js')}"></script>
173-
<script type="text/javascript" src="${fe:url('/js/index.js')}"></script>
169+
<script src="${fe:url('/js/jquery-3.7.1.min.js')}"></script>
170+
<script src="${fe:url('/js/popper.min.js')}"></script>
171+
<script src="${fe:url('/js/bootstrap.min.js')}"></script>
172+
<script src="${fe:url('/js/suggestor.js')}"></script>
173+
<script src="${fe:url('/js/index.js')}"></script>
174174
</body>
175175
${fe:html(false)}

0 commit comments

Comments
 (0)