select2 사용시 코드로 값을 세팅할 때 trigger 추가해서 UI 값 변경해주는 코드 추가. +어댑터 업무구문

select2 사용.
This commit is contained in:
daekuk
2025-12-15 14:52:29 +09:00
parent 9529ee8530
commit c3f348d84e
2 changed files with 15 additions and 1 deletions
@@ -280,6 +280,8 @@ function init(key,callback){
callback(key);
}
$('select[name=EAIBZWKDSTCD]').select2();
},
error:function(e){
alert(e.responseText);
@@ -328,6 +330,8 @@ function detail(key){
}
});
$('select[name=EAIBZWKDSTCD]').trigger('change');
//adapter
@@ -1,4 +1,4 @@
<%@ page language="java" contentType="text/html; charset=utf-8"%>
<%@ page language="java" contentType="text/html; charset=utf-8"%>
<%@ page import="java.io.*"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ include file="/jsp/common/include/localemessage.jsp" %>
@@ -512,6 +512,9 @@
$("#toResponseAdapter").change();
$("#apiFullPath").val(data["apiFullPath"]); // 스펙 전달용 값
$('#inboundHttpMethod').trigger('change');
$('#outboundHttpMethod').trigger('change');
},
error:function(e){
alert(e.responseText);
@@ -2049,4 +2052,11 @@
</div>
</div><!-- end right_box -->
</body>
</html>loneInterfaceButton">복제</button>
</div>
</div>
</div>
</div>
</div><!-- end right_box -->
</body>
</html>