@@ -102,8 +102,8 @@ sggDeptControl.sggs.query = {includeAll: true};
<%--
function searchSggs() {
sggDeptControl.sggs.query = {
- by:$("#by").val(),
- term:$("#term").val(),
+ by:$("#${infoPrefix}-query [name='by']").val(),
+ term:$("#${infoPrefix}-query [name='term']").val()
includeAll: true
};
sggDeptControl.sggs.load(1);
@@ -240,7 +240,7 @@ $(function(){
deptTotal:${deptTotal}
});
-<%-- $("#term").onEnterPress(searchSggs); --%>
+<%-- $("#${infoPrefix}term").onEnterPress(searchSggs); --%>
});
//# sourceURL=sgg-dept.jsp
\ No newline at end of file
diff --git a/src/main/webapp/WEB-INF/jsp/base/user/user-main.jsp b/src/main/webapp/WEB-INF/jsp/base/user/user-main.jsp
index 4cf9e733..f6545977 100644
--- a/src/main/webapp/WEB-INF/jsp/base/user/user-main.jsp
+++ b/src/main/webapp/WEB-INF/jsp/base/user/user-main.jsp
@@ -7,18 +7,18 @@
@@ -68,8 +68,8 @@ var ${infoPrefix}Control = new UserControl();
function search${infoPrefix}s() {
${infoPrefix}Control.query = {
- by:$("#by").val(),
- term:$("#term").val()
+ by:$("#${infoPrefix}-query [name='by']").val(),
+ term:$("#${infoPrefix}-query [name='term']").val()
};
${infoPrefix}Control.load(1);
}
@@ -135,10 +135,10 @@ ${infoPrefix}Control.onSelectionChange = selected => {
checkbox.prop("checked", keys.includes(checkbox.val()));
});
- $("button.on-select").prop("disabled", keys.length < 1);
+ $("#btnRemove${infoPrefix}s").prop("disabled", keys.length < 1);
};
-$("#term").onEnterPress(search${infoPrefix}s);
+$("#${infoPrefix}term").onEnterPress(search${infoPrefix}s);
$(function(){
${onload}