Explorar o código

fixed www_link to return val if link is not correct

Piotr Labudda %!s(int64=10) %!d(string=hai) anos
pai
achega
569a9d9632
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      SE/se-lib/TableAjax.php

+ 1 - 1
SE/se-lib/TableAjax.php

@@ -896,7 +896,7 @@ class TableAjax extends ViewAjax {
 							var linkErrors = validate({www_link: link}, {www_link: {url: true}});
 							if (linkErrors) {
 								// if(dbg)console.log('linkErrors for (' + link +')', linkErrors);
-								return '';
+								return val;
 							}
 							fldNode = document.createElement('a');
 							fldNode.setAttribute('href', link);