- Timestamp:
- 07/22/10 11:25:02 (19 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
plugins/apostrophePlugin/branches/1.4/lib/toolkit/aHtml.class.php
r1814 r1822 541 541 $label = self::jsEscape(trim($label)); 542 542 // ACHTUNG: this is carefully crafted to avoid introducing extra whitespace 543 return "<a href='#' id='$guid'></a><script type='text/javascript' charset='utf-8'> 544 var e = document.getElementById('$guid'); 543 // Note: $guid was returning IDs with leading numbers. This threw validation errors so I appended a 'g-' to the ID - JB 7.22.10 544 return "<a href='#' id='g-".$guid."'></a><script type='text/javascript' charset='utf-8'> 545 var e = document.getElementById('g-".$guid."'); 545 546 e.setAttribute('href', '$href'); 546 547 e.innerHTML = '$label';

