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

Merge branch 'yujung_style' into style

yujung 4 лет назад
Родитель
Сommit
8842e40994

+ 6 - 0
src/main/webapp/WEB-INF/views/business/BrandForm.html

@@ -329,6 +329,12 @@
 	
 	gridOptions2.rowSelection = "multiple";
 
+	var changeTag = function(option, type, val) {
+		var changeVal = val.replaceAll('&amp;', '&').replaceAll('&gt;', '>').replaceAll('&lt', '<').replaceAll('&nbsp;', ' ');
+		rowNode.setDataValue(rowNode, val);
+		gridOptions.setData()
+	}
+
 	// Cell click
 	gridOptions.onCellClicked = function(event) {
 		if (event.colDef.field != 'brandCd')

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

@@ -486,6 +486,14 @@
 		$('#goodsPopupForm').find('#pageNo').val(result.pageing.pageable.pageNo.addComma());
 		$('#goodsPopupForm').find('#pgNo').html(result.pageing.pageable.pageNo.addComma());
 		$('#goodsPopupForm').find('#endPgNo').html(result.pageing.pageable.totalPage.addComma());
+
+		// 태그 치환
+		$(result.goodsList).each(function(idx, item) {
+			if (typeof item.brandEnm != "undefined" && !gagajf.isNull(item.brandEnm)) item.brandEnm = item.brandEnm.replaceAll('&amp;', '&').replaceAll('&gt;', '>').replaceAll('&lt', '<').replaceAll('&nbsp;', ' ');
+			if (typeof item.brandKnm != "undefined" && !gagajf.isNull(item.brandKnm)) item.brandKnm = item.brandKnm.replaceAll('&amp;', '&').replaceAll('&gt;', '>').replaceAll('&lt', '<').replaceAll('&nbsp;', ' ');
+			if (typeof item.brandGroupNm != "undefined" && !gagajf.isNull(item.brandGroupNm)) item.brandGroupNm = item.brandGroupNm.replaceAll('&amp;', '&').replaceAll('&gt;', '>').replaceAll('&lt', '<').replaceAll('&nbsp;', ' ');
+		});
+
 		popupGoodsGridOptions.api.setRowData(result.goodsList);
 		gagaPaging.createPagination(result.pageing.pageable);
 

+ 18 - 0
src/main/webapp/ux/plugins/gaga/gaga.agGrid.js

@@ -1006,6 +1006,15 @@ var gagaAgGrid = {
 				},
 				success : function(data) {
 					try {
+						// 태그 치환
+						$(data).each(function(idx, item) {
+							if (typeof item.brandEnm != "undefined" && !gagajf.isNull(item.brandEnm)) item.brandEnm = item.brandEnm.replaceAll('&amp;', '&').replaceAll('&gt;', '>').replaceAll('&lt', '<').replaceAll('&nbsp;', ' ');
+							if (typeof item.brandKnm != "undefined" && !gagajf.isNull(item.brandKnm)) item.brandKnm = item.brandKnm.replaceAll('&amp;', '&').replaceAll('&gt;', '>').replaceAll('&lt', '<').replaceAll('&nbsp;', ' ');
+							if (typeof item.brandGroupNm != "undefined" && !gagajf.isNull(item.brandGroupNm)) item.brandGroupNm = item.brandGroupNm.replaceAll('&amp;', '&').replaceAll('&gt;', '>').replaceAll('&lt', '<').replaceAll('&nbsp;', ' ');
+							if (typeof item.brandGroupKnm != "undefined" && !gagajf.isNull(item.brandGroupKnm)) item.brandGroupKnm = item.brandGroupKnm.replaceAll('&amp;', '&').replaceAll('&gt;', '>').replaceAll('&lt', '<').replaceAll('&nbsp;', ' ');
+							if (typeof item.brandGroupEnm != "undefined" && !gagajf.isNull(item.brandGroupEnm)) item.brandGroupEnm = item.brandGroupEnm.replaceAll('&amp;', '&').replaceAll('&gt;', '>').replaceAll('&lt', '<').replaceAll('&nbsp;', ' ');
+						});
+
 						gridOptions.api.setRowData(data);
 					} catch (e) {
 						console.log(e);
@@ -1045,6 +1054,15 @@ var gagaAgGrid = {
 				},
 				success : function(data) {
 					try {
+						// 태그 치환
+						$(data).each(function(idx, item) {
+							if (typeof item.brandEnm != "undefined" && !gagajf.isNull(item.brandEnm)) item.brandEnm = item.brandEnm.replaceAll('&amp;', '&').replaceAll('&gt;', '>').replaceAll('&lt', '<').replaceAll('&nbsp;', ' ');
+							if (typeof item.brandKnm != "undefined" && !gagajf.isNull(item.brandKnm)) item.brandKnm = item.brandKnm.replaceAll('&amp;', '&').replaceAll('&gt;', '>').replaceAll('&lt', '<').replaceAll('&nbsp;', ' ');
+							if (typeof item.brandGroupNm != "undefined" && !gagajf.isNull(item.brandGroupNm)) item.brandGroupNm = item.brandGroupNm.replaceAll('&amp;', '&').replaceAll('&gt;', '>').replaceAll('&lt', '<').replaceAll('&nbsp;', ' ');
+							if (typeof item.brandGroupKnm != "undefined" && !gagajf.isNull(item.brandGroupKnm)) item.brandGroupKnm = item.brandGroupKnm.replaceAll('&amp;', '&').replaceAll('&gt;', '>').replaceAll('&lt', '<').replaceAll('&nbsp;', ' ');
+							if (typeof item.brandGroupEnm != "undefined" && !gagajf.isNull(item.brandGroupEnm)) item.brandGroupEnm = item.brandGroupEnm.replaceAll('&amp;', '&').replaceAll('&gt;', '>').replaceAll('&lt', '<').replaceAll('&nbsp;', ' ');
+						});
+
 						gridOptions.api.setRowData(data);
 					} catch (e) {
 						console.log(e);