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

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

@@ -485,8 +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]) {
-									//valLink = valLink.replace(new RegExp('\{' + i + '\}', 'g'), row[v]);
-									 valLink = valLink.replace(new RegExp('\{' + i + '\}', 'g'),   row[v].replace('"','') ).replace('&&','%26'); //naprawa <a href="mailto:?subject=W spr. p
+									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]);
+									}
 								}
 							});
 						}