a.binder hace 8 años
padre
commit
9c83b96a04
Se han modificado 1 ficheros con 5 adiciones y 3 borrados
  1. 5 3
      SE/se-lib/TableAjax.php.TableAjax.js

+ 5 - 3
SE/se-lib/TableAjax.php.TableAjax.js

@@ -485,9 +485,11 @@ var TableAjax = function() {
 							$.each(_fieldProps._tsSimpleLink.aliasMap, function(i, v) {
 								// console.log('simpleLink aliasMap fldName:', fldName, 'i:', i, 'v:', v, 'row['+v+']', row[v], 'val', val, 'typeof val', typeof val);
 								if (undefined !== row[v]) {
-									var _itemValue = row[v];
-									if (fldName == 'LINK_PROBLEMS' && row[v]) _itemValue = _itemValue.replace(/"/g, '%22').replace(/&/g, '%26');
-									valLink = valLink.replace(new RegExp('\{' + i + '\}', 'g'), _itemValue);
+									if( fldName == 'LINK_PROBLEMS' ) {
+										valLink = valLink.replace(new RegExp('\{' + i + '\}', 'g'), row[v].replace('"','') ).replace('&&','%26'); //naprawa <a href="mailto:?subject=W spr. p
+									} else {
+										valLink = valLink.replace(new RegExp('\{' + i + '\}', 'g'), row[v]);
+									}
 								}
 							});
 						}