Просмотр исходного кода

multiCheckBox 관련 초기화 처리

eskim 4 лет назад
Родитель
Сommit
37df5ced15

+ 6 - 0
src/main/webapp/WEB-INF/views/goods/GoodsListForm.html

@@ -571,6 +571,12 @@
 		$('#searchForm input[name=supplyCompList]').val('');
 		$('#searchForm').find('#brandText').html('');
 		$('#searchForm').find('#supplyCompText').html('');
+		
+		$(document).find('#searchForm').find(".multiCheckBox").each(function(i, e){
+			let btnNm = $(this).find(".sltBtn").attr("data-name");
+			$(this).find(".sltBtn").text(btnNm);
+		});
+		
 	});
 
 	// 조회클릭시

+ 5 - 1
src/main/webapp/WEB-INF/views/goods/GoodsNaverPriceForm.html

@@ -215,7 +215,11 @@
 		//$("#searchForm input[type=radio]").parent("label").removeClass("checked");
 		$("#searchForm input[type=checkbox]").parent("label").removeClass("checked");
 		$("#searchForm input[type=radio][checked]").parent("label").addClass("checked");
-
+		
+		$(document).find('#searchForm').find(".multiCheckBox").each(function(i, e){
+			let btnNm = $(this).find(".sltBtn").attr("data-name");
+			$(this).find(".sltBtn").text(btnNm);
+		});
 	});
 
 	// 조회클릭시

+ 5 - 0
src/main/webapp/WEB-INF/views/goods/GoodsPopupListForm.html

@@ -356,6 +356,11 @@
 		$('#goodsPopupForm input[name=supplyCompList]').val('');
 		$('#goodsPopupForm').find('#brandText').html('');
 		$('#goodsPopupForm').find('#supplyCompText').html('');
+		
+		$(document).find('#goodsPopupForm').find(".multiCheckBox").each(function(i, e){
+			let btnNm = $(this).find(".sltBtn").attr("data-name");
+			$(this).find(".sltBtn").text(btnNm);
+		});
 	});
 
 	// 조회클릭시

+ 5 - 0
src/main/webapp/WEB-INF/views/goods/GoodsQuikDeliverySkipForm.html

@@ -192,6 +192,11 @@
 		//$("#searchForm input[type=radio]").parent("label").removeClass("checked");
 		$("#searchForm input[type=checkbox]").parent("label").removeClass("checked");
 		$("#searchForm input[type=radio][checked]").parent("label").addClass("checked");
+		
+		$(document).find('#searchForm').find(".multiCheckBox").each(function(i, e){
+			let btnNm = $(this).find(".sltBtn").attr("data-name");
+			$(this).find(".sltBtn").text(btnNm);
+		});
 
 	});