Browse Source

Merge branch 'style' into jmh

jmh 4 years ago
parent
commit
62faef56c0

+ 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);

+ 2 - 2
src/main/webapp/ux/plugins/gaga/gaga.validation.js

@@ -603,7 +603,7 @@ var gagajf = {
 			success : function(result) {
 				if (typeof(result.status) == 'undefined' || result.status == 200) { // 성공
 					if (!gagajf.isNull(result.message)) {
-						mcxDialog.alertC(result.message, {
+						mcxDialog.alertC(result.message.replaceAll("&lt;", "<").replaceAll("&gt;", ">"), {
 							sureBtnText: "확인",
 							sureBtnClick: function() {
 								if (typeof(callbackFn) == "function") {
@@ -680,7 +680,7 @@ var gagajf = {
 			success : function(result) {
 				if (typeof(result.status) == 'undefined' || result.status == 200) { // 성공
 					if (!gagajf.isNull(result.message)) {
-						mcxDialog.alertC(result.message, {
+						mcxDialog.alertC(result.message.replaceAll("&lt;", "<").replaceAll("&gt;", ">"), {
 							sureBtnText: "확인",
 							sureBtnClick: function() {
 								if (typeof(callbackFn) == "function") {