Skip to content

Commit

Permalink
temp - javascript attemting migration to jquery
Browse files Browse the repository at this point in the history
  • Loading branch information
hazendaz committed Sep 14, 2024
1 parent 65b3130 commit c2f311b
Show file tree
Hide file tree
Showing 22 changed files with 1,298 additions and 866 deletions.
5 changes: 4 additions & 1 deletion psi-probe-web/src/main/webapp/WEB-INF/jsp/allappstats.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
<script src="<c:url value='/js/scriptaculous/scriptaculous.js'/>"></script>
<script src="<c:url value='/js/func.js'/>"></script>
<script src="<c:url value='/js/jquery-3.2.1.min.js'/>"/></script>
<script src="<c:url value='/js/jquery-livequery.js'/>"/></script>
<script src="<c:url value='/js/jquery-behavior.js'/>"/></script>
<script>
jQuery.noConflict();
</script>
Expand Down Expand Up @@ -254,7 +256,8 @@
}
}
jQuery(document).ready(rules);
jQuery.behavior(rules)
jQuery(document).ready();
imageUpdaters[0] = new Ajax.ImgUpdater('total_avg_proc_time_chart', '${probe:max(collectionPeriod, 5)}');
imageUpdaters[1] = new Ajax.ImgUpdater('all_app_avg_proc_time_chart', '${probe:max(collectionPeriod, 5)}');
Expand Down
2 changes: 2 additions & 0 deletions psi-probe-web/src/main/webapp/WEB-INF/jsp/appattributes.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
<link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}<spring:theme code='scroller.css'/>"/>
<script src="<c:url value='/js/prototype.js'/>"></script>
<script src="<c:url value='/js/jquery-3.2.1.min.js'/>"/></script>
<script src="<c:url value='/js/jquery-livequery.js'/>"/></script>
<script src="<c:url value='/js/jquery-behavior.js'/>"/></script>
<script>
jQuery.noConflict();
</script>
Expand Down
2 changes: 2 additions & 0 deletions psi-probe-web/src/main/webapp/WEB-INF/jsp/applications.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
<script src="<c:url value='/js/scriptaculous/scriptaculous.js'/>"></script>
<script src="<c:url value='/js/func.js'/>"></script>
<script src="<c:url value='/js/jquery-3.2.1.min.js'/>"/></script>
<script src="<c:url value='/js/jquery-livequery.js'/>"/></script>
<script src="<c:url value='/js/jquery-behavior.js'/>"/></script>
<script>
jQuery.noConflict();
</script>
Expand Down
10 changes: 4 additions & 6 deletions psi-probe-web/src/main/webapp/WEB-INF/jsp/appsummary.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,10 @@
</div>
</c:when>
<c:otherwise>
<script src="<c:url value='/js/prototype.js'/>"></script>
<script src="<c:url value='/js/scriptaculous/scriptaculous.js'/>"></script>
<script src="<c:url value='/js/func.js'/>"></script>
<script src="<c:url value='/js/jquery-3.2.1.min.js'/>"/></script>
<script>
jQuery.noConflict();
</script>
<script src="<c:url value='/js/jquery-livequery.js'/>"/></script>
<script src="<c:url value='/js/jquery-behavior.js'/>"/></script>

<c:set var="confirmMessage">
<spring:message htmlEscape="true" code="probe.jsp.app.summary.undeploy.confirm" arguments="${param.webapp}"/>
Expand Down Expand Up @@ -284,7 +281,8 @@
}
}
jQuery(document).ready(rules);
$.behavior(rules)
$(document).ready();
imageUpdaters[0] = new Ajax.ImgUpdater('req_chart', '${probe:max(collectionPeriod, 5)}');
imageUpdaters[1] = new Ajax.ImgUpdater('avg_proc_time_chart', '${probe:max(collectionPeriod, 5)}');
Expand Down
5 changes: 4 additions & 1 deletion psi-probe-web/src/main/webapp/WEB-INF/jsp/connectors.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
<script src="<c:url value='/js/scriptaculous/scriptaculous.js'/>"></script>
<script src="<c:url value='/js/Tooltip.js'/>"></script>
<script src="<c:url value='/js/jquery-3.2.1.min.js'/>"/></script>
<script src="<c:url value='/js/jquery-livequery.js'/>"/></script>
<script src="<c:url value='/js/jquery-behavior.js'/>"/></script>
<script>
jQuery.noConflict();
</script>
Expand Down Expand Up @@ -383,7 +385,8 @@
}
}
}
jQuery(document).ready(rules);
jQuery.behavior(rules)
jQuery(document).ready();
</script>

</body>
Expand Down
2 changes: 2 additions & 0 deletions psi-probe-web/src/main/webapp/WEB-INF/jsp/datasources.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
<script src="<c:url value='/js/scriptaculous/scriptaculous.js'/>"></script>
<script src="<c:url value='/js/func.js'/>"></script>
<script src="<c:url value='/js/jquery-3.2.1.min.js'/>"/></script>
<script src="<c:url value='/js/jquery-livequery.js'/>"/></script>
<script src="<c:url value='/js/jquery-behavior.js'/>"/></script>
<script>
jQuery.noConflict();
</script>
Expand Down
2 changes: 2 additions & 0 deletions psi-probe-web/src/main/webapp/WEB-INF/jsp/datasourcetest.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
<link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}<spring:theme code='scroller.css'/>"/>
<script src="<c:url value='/js/prototype.js'/>"></script>
<script src="<c:url value='/js/jquery-3.2.1.min.js'/>"/></script>
<script src="<c:url value='/js/jquery-livequery.js'/>"/></script>
<script src="<c:url value='/js/jquery-behavior.js'/>"/></script>
<script>
jQuery.noConflict();
</script>
Expand Down
5 changes: 4 additions & 1 deletion psi-probe-web/src/main/webapp/WEB-INF/jsp/follow.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
<script src="<c:url value='/js/scriptaculous/scriptaculous.js'/>"></script>
<script src="<c:url value='/js/func.js'/>"></script>
<script src="<c:url value='/js/jquery-3.2.1.min.js'/>"/></script>
<script src="<c:url value='/js/jquery-livequery.js'/>"/></script>
<script src="<c:url value='/js/jquery-behavior.js'/>"/></script>
<script>
jQuery.noConflict();
</script>
Expand Down Expand Up @@ -383,7 +385,8 @@
}
}
}
jQuery(document).ready(rules);
jQuery.behavior(rules)
jQuery(document).ready();
}
Behaviour.register(rules);
Expand Down
7 changes: 5 additions & 2 deletions psi-probe-web/src/main/webapp/WEB-INF/jsp/osinfo.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@
<script src="<c:url value='/js/prototype.js'/>"></script>
<script src="<c:url value='/js/scriptaculous/scriptaculous.js'/>"></script>
<script src="<c:url value='/js/func.js'/>"></script>
<script src="<c:url value='/js/jquery-3.2.1.min.js'/>"/></script>'/>"></script>
<script src="<c:url value='/js/jquery-3.2.1.min.js'/>"/></script>
<script src="<c:url value='/js/jquery-livequery.js'/>"/></script>
<script src="<c:url value='/js/jquery-behavior.js'/>"/></script>
<script>
jQuery.noConflict();
</script>
Expand Down Expand Up @@ -247,7 +249,8 @@
}
}
jQuery(document).ready(rules);
jQuery.behavior(rules)
jQuery(document).ready();
new Ajax.ImgUpdater('cpu_chart', '${probe:max(collectionPeriod, 5)}');
new Ajax.ImgUpdater('mem_chart', '${probe:max(collectionPeriod, 5)}');
Expand Down
5 changes: 4 additions & 1 deletion psi-probe-web/src/main/webapp/WEB-INF/jsp/sessions.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
<script src="<c:url value='/js/Tooltip.js'/>"></script>
<script src="<c:url value='/js/func.js'/>"></script>
<script src="<c:url value='/js/jquery-3.2.1.min.js'/>"/></script>
<script src="<c:url value='/js/jquery-livequery.js'/>"/></script>
<script src="<c:url value='/js/jquery-behavior.js'/>"/></script>
<script>
jQuery.noConflict();
</script>
Expand Down Expand Up @@ -340,7 +342,8 @@
}
}
}
jQuery(document).ready(rules);
jQuery.behavior(rules)
jQuery(document).ready();
setupHelpToggle('<c:url value="/help/sessionsearch.ajax"/>');
Expand Down
2 changes: 2 additions & 0 deletions psi-probe-web/src/main/webapp/WEB-INF/jsp/threads.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
<script src="<c:url value='/js/scriptaculous/scriptaculous.js'/>"></script>
<script src="<c:url value='/js/func.js'/>"></script>
<script src="<c:url value='/js/jquery-3.2.1.min.js'/>"/></script>
<script src="<c:url value='/js/jquery-livequery.js'/>"/></script>
<script src="<c:url value='/js/jquery-behavior.js'/>"/></script>
<script>
jQuery.noConflict();
</script>
Expand Down
5 changes: 4 additions & 1 deletion psi-probe-web/src/main/webapp/WEB-INF/jsp/threads_sun.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
<script src="<c:url value='/js/scriptaculous/scriptaculous.js'/>"></script>
<script src="<c:url value='/js/Tooltip.js'/>"></script>
<script src="<c:url value='/js/jquery-3.2.1.min.js'/>"/></script>
<script src="<c:url value='/js/jquery-livequery.js'/>"/></script>
<script src="<c:url value='/js/jquery-behavior.js'/>"/></script>
<script>
jQuery.noConflict();
</script>
Expand Down Expand Up @@ -136,7 +138,8 @@
}
}
}
jQuery(document).ready(rules);
jQuery.behavior(rules)
jQuery(document).ready();
</script>

</body>
Expand Down
2 changes: 2 additions & 0 deletions psi-probe-web/src/main/webapp/WEB-INF/jsp/view_jsp_source.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
<link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}<spring:theme code='scroller.css'/>"/>
<script src="<c:url value='/js/prototype.js'/>"></script>
<script src="<c:url value='/js/jquery-3.2.1.min.js'/>"/></script>
<script src="<c:url value='/js/jquery-livequery.js'/>"/></script>
<script src="<c:url value='/js/jquery-behavior.js'/>"/></script>
<script>
jQuery.noConflict();
</script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
<link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}<spring:theme code='scroller.css'/>"/>
<script src="<c:url value='/js/prototype.js'/>"></script>
<script src="<c:url value='/js/jquery-3.2.1.min.js'/>"/></script>
<script src="<c:url value='/js/jquery-livequery.js'/>"/></script>
<script src="<c:url value='/js/jquery-behavior.js'/>"/></script>
<script>
jQuery.noConflict();
</script>
Expand Down
2 changes: 2 additions & 0 deletions psi-probe-web/src/main/webapp/WEB-INF/jsp/view_xml_conf.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
<link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}<spring:theme code='scroller.css'/>"/>
<script src="<c:url value='/js/prototype.js'/>"></script>
<script src="<c:url value='/js/jquery-3.2.1.min.js'/>"/></script>
<script src="<c:url value='/js/jquery-livequery.js'/>"/></script>
<script src="<c:url value='/js/jquery-behavior.js'/>"/></script>
<script>
jQuery.noConflict();
</script>
Expand Down
5 changes: 4 additions & 1 deletion psi-probe-web/src/main/webapp/WEB-INF/jsp/wrapper.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
<script src="<c:url value='/js/prototype.js'/>"></script>
<script src="<c:url value='/js/scriptaculous/scriptaculous.js'/>"></script>
<script src="<c:url value='/js/jquery-3.2.1.min.js'/>"/></script>
<script src="<c:url value='/js/jquery-livequery.js'/>"/></script>
<script src="<c:url value='/js/jquery-behavior.js'/>"/></script>
<script>
jQuery.noConflict();
</script>
Expand Down Expand Up @@ -114,7 +116,8 @@
}
}
jQuery(document).ready(rules);
jQuery.behavior(rules)
jQuery(document).ready();
</script>
</c:otherwise>
</c:choose>
Expand Down
Loading

0 comments on commit c2f311b

Please sign in to comment.