Mariusz Muszyński %!s(int64=8) %!d(string=hai) anos
pai
achega
a79a56dbe9
Modificáronse 1 ficheiros con 2 adicións e 5 borrados
  1. 2 5
      SE/se-lib/TableAjax.php.TableAjax.js

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

@@ -485,11 +485,8 @@ var TableAjax = function() {
 							$.each(_fieldProps._tsSimpleLink.aliasMap, function(i, v) {
 							$.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);
 								// console.log('simpleLink aliasMap fldName:', fldName, 'i:', i, 'v:', v, 'row['+v+']', row[v], 'val', val, 'typeof val', typeof val);
 								if (undefined !== row[v]) {
 								if (undefined !== row[v]) {
-									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]);
-									}
+									if (fldName == 'LINK_PROBLEMS' && row[v]) row[v] = row[v].replace(/"/g, '%22').replace(/&/g, '%26');
+									valLink = valLink.replace(new RegExp('\{' + i + '\}', 'g'), row[v]);
 								}
 								}
 							});
 							});
 						}
 						}