엔터키 이벤트 처리 수정

main
이범준 10 months ago
parent 64b1d45cd7
commit 864b2b543b

@ -549,11 +549,12 @@ $(document).ready(function(){
$P.fnDisplay(); $P.fnDisplay();
}); });
$("#vhrno--${pageName}").on("keyup",function(e){ $("#vhrno--${pageName}").onEnterPress(function(){
var alertDialogId = "alertDialog"; var alertDialogId = "alertDialog";
if(e.key == "Enter"){
var crdnYmd = $("#crdnYmd--${pageName}").val().replaceAll("-", ""); var crdnYmd = $("#crdnYmd--${pageName}").val().replaceAll("-", "");
var vhrno = this.value; var vhrnoEl = event.target;
var vhrno = vhrnoEl.value;
if(crdnYmd == ""){ if(crdnYmd == ""){
dialog.alert({ dialog.alert({
content : "단속일자를 입력하세요.", content : "단속일자를 입력하세요.",
@ -567,7 +568,7 @@ $(document).ready(function(){
dialog.alert({ dialog.alert({
content:"차량번호를 입력하세요.", content:"차량번호를 입력하세요.",
init : function(){ focusClose(); }, init : function(){ focusClose(); },
onClose:function(){ $("#vhrno--${pageName}").focus(); } onClose:function(){ $(vhrnoEl).focus(); }
}); });
return; return;
} }
@ -644,7 +645,6 @@ $(document).ready(function(){
$("#dtlAddr--${pageName}").val(vehicle.use_strnghld_adres_nm); //상세주소 $("#dtlAddr--${pageName}").val(vehicle.use_strnghld_adres_nm); //상세주소
} }
}); });
}
}); });

@ -445,12 +445,7 @@
}); });
}); });
$("#vhrno--${pageName}").on("keyup", function(e) { $("#vhrno--${pageName}").onEnterPress(getVehicle${pageName});
if (e.key == "Enter") {
// 차적 조회
getVehicle${pageName}();
}
});
} }
/************************************************************************** /**************************************************************************

@ -847,10 +847,11 @@ $(document).ready(function(){
//차적조회 //차적조회
$("#vhrno--${pageName}").on("keyup",function(e){ $("#vhrno--${pageName}").onEnterPress(function(){
if(e.key == "Enter"){
var crdnYmd = $("#crdnYmd--${pageName}").val().replaceAll("-", ""); var crdnYmd = $("#crdnYmd--${pageName}").val().replaceAll("-", "");
var vhrno = this.value; var vhrnoEl = event.target;
var vhrno = vhrnoEl.value;
if(crdnYmd == ""){ if(crdnYmd == ""){
dialog.alert({ dialog.alert({
content:"단속일자를 입력하세요.", content:"단속일자를 입력하세요.",
@ -863,7 +864,7 @@ $(document).ready(function(){
dialog.alert({ dialog.alert({
content:"차량번호를 입력하세요.", content:"차량번호를 입력하세요.",
init : function() { focusClose(); }, init : function() { focusClose(); },
onClose:function(){ $(this).focus(); } onClose:function(){ $(vhrnoEl).focus(); }
}); });
return; return;
} }
@ -942,7 +943,7 @@ $(document).ready(function(){
$("#dtlAddr--${pageName}").val(vehicle.use_strnghld_adres_nm); //상세주소 $("#dtlAddr--${pageName}").val(vehicle.use_strnghld_adres_nm); //상세주소
} }
}); });
}
}); });
if("${taskSeCd}" == "DPV"){ if("${taskSeCd}" == "DPV"){

@ -47,18 +47,19 @@
<script src="<c:url value="/resources/3rd-party/sneat/js/helpers.js?${ver}"/>"></script> <script src="<c:url value="/resources/3rd-party/sneat/js/helpers.js?${ver}"/>"></script>
<script src="<c:url value="/resources/3rd-party/sneat/libs/jquery/jquery.js?${ver}"/>"></script> <script src="<c:url value="/resources/3rd-party/sneat/js/config.js?${ver}"/>"></script>
<script src="<c:url value="/resources/3rd-party/sneat/libs/popper/popper.js?${ver}"/>"></script> <script src="<c:url value="/resources/3rd-party/sneat/libs/popper/popper.js?${ver}"/>"></script>
<script src="<c:url value="/resources/3rd-party/sneat/js/bootstrap.js?${ver}"/>"></script> <script src="<c:url value="/resources/3rd-party/sneat/js/bootstrap.js?${ver}"/>"></script>
<script src="<c:url value="/resources/3rd-party/sneat/libs/jquery/jquery.js?${ver}"/>"></script>
<script src="<c:url value="/resources/3rd-party/sneat/libs/perfect-scrollbar/perfect-scrollbar.js?${ver}"/>"></script> <script src="<c:url value="/resources/3rd-party/sneat/libs/perfect-scrollbar/perfect-scrollbar.js?${ver}"/>"></script>
<script src="<c:url value="/resources/3rd-party/sneat/js/menu.js?${ver}"/>"></script> <script src="<c:url value="/resources/3rd-party/sneat/js/menu.js?${ver}"/>"></script>
<script src="<c:url value="/resources/3rd-party/sneat/libs/jstree/jstree.js?${ver}"/>"></script>
<script src="<c:url value="/resources/3rd-party/jstree/jstree-support.js?${ver}"/>"></script> <!-- Core JS for base -->
<script src="<c:url value="/resources/3rd-party/sneat/js/config.js?${ver}"/>"></script>
<script src="<c:url value="/resources/3rd-party/sneat/libs/chartjs/chartjs.js?${ver}"/>"></script>
<script src="<c:url value="/resources/lib/fims/framework/jquery-ui/1.13.2/jquery-ui.js?${ver}"/>"></script> <script src="<c:url value="/resources/lib/fims/framework/jquery-ui/1.13.2/jquery-ui.js?${ver}"/>"></script>
<!-- base -->
<script src="<c:url value="/resources/js/base/base.js?${ver}"/>"></script>
<!-- json, xhtml --> <!-- json, xhtml -->
<script src="<c:url value="/resources/lib/fims/biz/paintweb/korean.js?${ver}"/>"></script> <script src="<c:url value="/resources/lib/fims/biz/paintweb/korean.js?${ver}"/>"></script>
<script src="<c:url value="/resources/lib/fims/biz/paintweb/paintweb-config.js?${ver}"/>"></script> <script src="<c:url value="/resources/lib/fims/biz/paintweb/paintweb-config.js?${ver}"/>"></script>
@ -147,10 +148,8 @@ $(document).ready(function(){
$("input[name='vhclNm']").val(vhclInfo.vhclNm); $("input[name='vhclNm']").val(vhclInfo.vhclNm);
$("input[name='vhclColor']").val(vhclInfo.vhclColor); $("input[name='vhclColor']").val(vhclInfo.vhclColor);
$("input[name='vhrno']").on("keyup", function(e){ $("input[name='vhrno']").onEnterPress(function(){
if(e.key == "Enter"){ fnCarLink(event.target.value);
fnCarLink(this.value);
}
}); });
} }
} else { } else {

@ -12,9 +12,11 @@
<script src="<c:url value="/resources/3rd-party/sneat/libs/jquery/jquery.js?${ver}"/>"></script> <script src="<c:url value="/resources/3rd-party/sneat/libs/jquery/jquery.js?${ver}"/>"></script>
<script src="<c:url value="/resources/3rd-party/sneat/libs/perfect-scrollbar/perfect-scrollbar.js?${ver}"/>"></script> <script src="<c:url value="/resources/3rd-party/sneat/libs/perfect-scrollbar/perfect-scrollbar.js?${ver}"/>"></script>
<script src="<c:url value="/resources/3rd-party/sneat/js/menu.js?${ver}"/>"></script> <script src="<c:url value="/resources/3rd-party/sneat/js/menu.js?${ver}"/>"></script>
<!-- Core JS for base -->
<script src="<c:url value="/resources/lib/fims/framework/jquery-ui/1.13.2/jquery-ui.js?${ver}"/>"></script>
<script src="<c:url value="/resources/3rd-party/sneat/libs/jstree/jstree.js?${ver}"/>"></script> <script src="<c:url value="/resources/3rd-party/sneat/libs/jstree/jstree.js?${ver}"/>"></script>
<script src="<c:url value="/resources/3rd-party/jstree/jstree-support.js?${ver}"/>"></script> <script src="<c:url value="/resources/3rd-party/jstree/jstree-support.js?${ver}"/>"></script>
<script src="<c:url value="/resources/lib/fims/framework/jquery-ui/1.13.2/jquery-ui.js?${ver}"/>"></script>
<!-- base --> <!-- base -->
<script src="<c:url value="/resources/js/base/base.js?${ver}"/>"></script> <script src="<c:url value="/resources/js/base/base.js?${ver}"/>"></script>

@ -338,11 +338,7 @@ $("#btnFastSearch--top").on( "click", function() {
doFastSearch(); doFastSearch();
}); });
$("#fastTerm--top").on("keyup", function(e){ $("#fastTerm--top").onEnterPress(doFastSearch);
if(e.key == "Enter"){
doFastSearch();
}
});
function doFastSearch(){ function doFastSearch(){
closeTab("17"); closeTab("17");

Loading…
Cancel
Save