Преглед изворни кода

multiCheckBox 관련 초기화 처리

eskim пре 4 година
родитељ
комит
a5f5947f53

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

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

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

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