Index: admin_templates/js/script.js
===================================================================
--- admin_templates/js/script.js (revision 13128)
+++ admin_templates/js/script.js (working copy)
@@ -944,10 +944,10 @@
if (!isset($escaped)) $escaped = true;
if ($escaped) {
- return $string.replace(/<a href="(.*?)">(.*?)<\/a>/g, '$2');
+ return $string.replace(/<a href="(.*?)".*>(.*?)<\/a>/g, '$2');
}
- return $string.replace(/(.*?)<\/a>/g, '$2');
+ return $string.replace(/(.*?)<\/a>/g, '$2');
}
function redirect($url)
Index: admin_templates/js/toolbar.js
===================================================================
--- admin_templates/js/toolbar.js (revision 13128)
+++ admin_templates/js/toolbar.js (working copy)
@@ -6,7 +6,7 @@
this.Alt = RemoveTranslationLink(alt || '');
if (this.Alt != alt) {
this.TranslateLink = alt || '';
- this.TranslateLink = this.TranslateLink.replace(/<a href="(.*?)">(.*?)<\/a>/g, '$1');
+ this.TranslateLink = this.TranslateLink.replace(/<a href="(.*?)".*>(.*?)<\/a>/g, '$1');
}
if (this.Alt.match(/(.*)::(.*)/)) {