@@ -66,10 +63,10 @@ function getSelectedActionGroup() {
return selected;
}
-function search${infoPrefix}s() {
+function _search${infoPrefix}s() {
${infoPrefix}Control.groups.query = {
- by:$("#_groupBy").val(),
- term:$("#_groupTerm").val()
+ by:$("#_actionGroupBy").val(),
+ term:$("#_actionGroupTerm").val()
};
${infoPrefix}Control.groups.load(1);
}
@@ -79,12 +76,12 @@ ${infoPrefix}Control.onGroupListChange = obj => {
let empty = ${infoPrefix}List.empty;
let trs = empty ?
- [document.getElementById("${infoPrefix}NotFound").innerHTML] : <%-- from template#${infoPrefix}NotFound --%>
- ${infoPrefix}List.inStrings(document.getElementById("${infoPrefix}Row").innerHTML); <%-- from template#${infoPrefix}Row --%>
- $("#_${infoPrefix}List").html(trs.join());
+ [document.getElementById("_action${infoPrefix}NotFound").innerHTML] : <%-- from template#_action${infoPrefix}NotFound --%>
+ ${infoPrefix}List.inStrings(document.getElementById("_action${infoPrefix}Row").innerHTML); <%-- from template#_action${infoPrefix}Row --%>
+ $("#_action${infoPrefix}List").html(trs.join());
$("th input[type='checkbox']").prop("checked", false);
- $("#${infoPrefix}Paging").setPaging({
+ $("#_action${infoPrefix}Paging").setPaging({
list:${infoPrefix}Control.groups.dataset,
prefix:${infoPrefix}Control.groups.prefix,
start:obj.${infoPrefix}Start,
@@ -98,19 +95,19 @@ ${infoPrefix}Control.onCurrentGroupChange = item => {
if (!item) return;
let key = item.data.GRP_ID;
- $("#_${infoPrefix}List").setCurrentRow(key);
+ $("#_action${infoPrefix}List").setCurrentRow(key);
};
${infoPrefix}Control.onGroupSelect = selected => {
let ${infoPrefix}List = ${infoPrefix}Control.groups.dataset;
let keys = selected.map(e => ${infoPrefix}List.getKey(e));
- $("#_${infoPrefix}List input[type='checkbox']").each(function() {
+ $("#_action${infoPrefix}List input[type='checkbox']").each(function() {
let checkbox = $(this);
checkbox.prop("checked", keys.includes(checkbox.val()));
});
};
-$("#_groupTerm").onEnterPress(search${infoPrefix}s);
+$("#_actionGroupTerm").onEnterPress(_search${infoPrefix}s);
$(function(){
${onload}
diff --git a/src/main/webapp/WEB-INF/jsp/base/authority/actionGroup-list.jsp b/src/main/webapp/WEB-INF/jsp/base/authority/actionGroup-list.jsp
index 1192627e..12b27b34 100644
--- a/src/main/webapp/WEB-INF/jsp/base/authority/actionGroup-list.jsp
+++ b/src/main/webapp/WEB-INF/jsp/base/authority/actionGroup-list.jsp
@@ -2,49 +2,43 @@
<%@ include file="/WEB-INF/jsp/include/taglib.jsp"%>
-
-
+
+