소스 검색

버전팝업 수정

isna 2 년 전
부모
커밋
5b6dc5377e
1개의 변경된 파일7개의 추가작업 그리고 12개의 파일을 삭제
  1. 7 12
      src/main/webapp/js/app/system/ITP_SYSTEM07010.js

+ 7 - 12
src/main/webapp/js/app/system/ITP_SYSTEM07010.js

@@ -174,15 +174,11 @@ let pageObj = {
174 174
             this.button();
175 175
         },
176 176
         button: function () {
177
-            // 버튼 클릭 이벤트
178
-        	$('button').each(function() {
179
-                var id = $(this).attr('id');
180
-                $(this).on('click', function() {
181
-                    switch (id) {
182
-                        case 'ITP_BTN_SYSTEM07010_ADD'		: listObj.button.create.action();		break;	// 조회 버튼 클릭
183
-                    }
184
-                });
185
-            });
177
+            // 버튼 클릭 이벤트 
178
+            $('#ITP_BTN_SYSTEM07010_ADD').on('click', function() {
179
+                listObj.button.create.popup();
180
+                setTimeout(()=>$('#ITP_BIZPOP_VERSION').modal('show'), 250);
181
+            }); 
186 182
         }
187 183
     },
188 184
     switchScreen: function(mode) {
@@ -212,15 +208,14 @@ let listObj = {
212 208
     button: {
213 209
     	create: {
214 210
     		action: function() {
215
-    			$('#ITP_BTN_SYSTEM07010_ADD').on('click', function() {
216
-    				listObj.button.create.popup();
217
-    			});
211
+    			 
218 212
     		},
219 213
     		popup: function() {
220 214
     			const key = {};
221 215
     			var popFn = function(result) {
222 216
     				listObj.init();
223 217
 				}
218
+                
224 219
     			fn_call_popup('biz', 'BIZPOP_VERSION', '#ITP_ASIDE', popFn, null, 'S');
225 220
 			}
226 221
     	}