|
|
@@ -604,7 +604,7 @@
|
|
|
gridOptionsFreeGoods2List.columnApi.getColumn("limitQty").colDef.editable = false;
|
|
|
//}
|
|
|
}
|
|
|
-
|
|
|
+ //2022.01.05 replaceXSS 적용
|
|
|
var data = freegift.brandList;
|
|
|
let brandList = [];
|
|
|
$.each(data, function(idx, item) {
|
|
|
@@ -816,13 +816,13 @@
|
|
|
xhr.setRequestHeader('Content-Type' , 'application/json');
|
|
|
},
|
|
|
success : function(result) {
|
|
|
- var data = result.returnList;
|
|
|
+ /*var data = result.returnList;
|
|
|
let brandList = [];
|
|
|
$.each(data, function(idx, item) {
|
|
|
let brandEnm = item.brandEnm;
|
|
|
item.brandEnm = brandEnm.replaceXSS();
|
|
|
brandList.push(item);
|
|
|
- });
|
|
|
+ });*/
|
|
|
if (result != null) {
|
|
|
for (let i = 0 ; i < result.returnList.length ; i++) {
|
|
|
let addChk = true, gridListValue = gagaAgGrid.getAllRowData(gridOptionsFGBrandList); // 받아온 모든 데이터
|
|
|
@@ -834,7 +834,10 @@
|
|
|
|
|
|
// 중복되지 않은 데이터 리스트에 추가
|
|
|
if (addChk) {
|
|
|
- gagaAgGrid.addRowData(gridOptionsFGBrandList, {"brandCd" : result.returnList[i].brandCd, "brandEnm" : result.returnList[i].brandEnm, "supplyCompNm" : result.returnList[i].supplyCompNm, "targetGb" : "G260_12"});
|
|
|
+ //2022.01.05 replaceXSS 적용
|
|
|
+ let brandEnm = result.returnList[i].brandEnm;
|
|
|
+ brandEnm = brandEnm.replaceXSS();
|
|
|
+ gagaAgGrid.addRowData(gridOptionsFGBrandList, {"brandCd" : result.returnList[i].brandCd, "brandEnm" : brandEnm, "supplyCompNm" : result.returnList[i].supplyCompNm, "targetGb" : "G260_12"});
|
|
|
}
|
|
|
}
|
|
|
}
|