엔터키 이벤트 처리 수정

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

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

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

@ -847,10 +847,11 @@ $(document).ready(function(){
//차적조회
$("#vhrno--${pageName}").on("keyup",function(e){
if(e.key == "Enter"){
$("#vhrno--${pageName}").onEnterPress(function(){
var crdnYmd = $("#crdnYmd--${pageName}").val().replaceAll("-", "");
var vhrno = this.value;
var vhrnoEl = event.target;
var vhrno = vhrnoEl.value;
if(crdnYmd == ""){
dialog.alert({
content:"단속일자를 입력하세요.",
@ -863,7 +864,7 @@ $(document).ready(function(){
dialog.alert({
content:"차량번호를 입력하세요.",
init : function() { focusClose(); },
onClose:function(){ $(this).focus(); }
onClose:function(){ $(vhrnoEl).focus(); }
});
return;
}
@ -942,7 +943,7 @@ $(document).ready(function(){
$("#dtlAddr--${pageName}").val(vehicle.use_strnghld_adres_nm); //상세주소
}
});
}
});
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/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/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/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>
<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>
<!-- Core JS for base -->
<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 -->
<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>
@ -147,10 +148,8 @@ $(document).ready(function(){
$("input[name='vhclNm']").val(vhclInfo.vhclNm);
$("input[name='vhclColor']").val(vhclInfo.vhclColor);
$("input[name='vhrno']").on("keyup", function(e){
if(e.key == "Enter"){
fnCarLink(this.value);
}
$("input[name='vhrno']").onEnterPress(function(){
fnCarLink(event.target.value);
});
}
} 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/perfect-scrollbar/perfect-scrollbar.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/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 -->
<script src="<c:url value="/resources/js/base/base.js?${ver}"/>"></script>

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

Loading…
Cancel
Save