Browse Source

버전팝업 수정

isna 2 years ago
parent
commit
5b6dc5377e
1 changed files with 7 additions and 12 deletions
  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
             this.button();
174
             this.button();
175
         },
175
         },
176
         button: function () {
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
     switchScreen: function(mode) {
184
     switchScreen: function(mode) {
@@ -212,15 +208,14 @@ let listObj = {
212
     button: {
208
     button: {
213
     	create: {
209
     	create: {
214
     		action: function() {
210
     		action: function() {
215
-    			$('#ITP_BTN_SYSTEM07010_ADD').on('click', function() {
216
-    				listObj.button.create.popup();
217
-    			});
211
+    			 
218
     		},
212
     		},
219
     		popup: function() {
213
     		popup: function() {
220
     			const key = {};
214
     			const key = {};
221
     			var popFn = function(result) {
215
     			var popFn = function(result) {
222
     				listObj.init();
216
     				listObj.init();
223
 				}
217
 				}
218
+                
224
     			fn_call_popup('biz', 'BIZPOP_VERSION', '#ITP_ASIDE', popFn, null, 'S');
219
     			fn_call_popup('biz', 'BIZPOP_VERSION', '#ITP_ASIDE', popFn, null, 'S');
225
 			}
220
 			}
226
     	}
221
     	}