Side navigation
Ticket #1527: ifxhighlight_bug_fix_23_08_2007.patch
File ifxhighlight_bug_fix_23_08_2007.patch, 0.6 KB (added by berpasan, August 23, 2007 03:32AM UTC)
patch to fix the bug
Index: ifxhighlight.js
===================================================================
--- ifxhighlight.js (revision 2845)
+++ ifxhighlight.js (working copy)
@@ -33,7 +33,7 @@
callback = typeof callback == 'function' ? callback : null;
var oldColor = jQuery(this).css('backgroundColor');
var parentEl = this.parentNode;
- while(oldColor == 'transparent' && parentEl) {
+ while(oldColor == 'transparent' && parentEl && parentEl.nodeType !== 1) {
oldColor = jQuery(parentEl).css('backgroundColor');
parentEl = parentEl.parentNode;
}
Download in other formats:
Original Format
File ifxhighlight_bug_fix_23_08_2007.patch, 0.6 KB (added by berpasan, August 23, 2007 03:32AM UTC)
patch to fix the bug
Index: ifxhighlight.js
===================================================================
--- ifxhighlight.js (revision 2845)
+++ ifxhighlight.js (working copy)
@@ -33,7 +33,7 @@
callback = typeof callback == 'function' ? callback : null;
var oldColor = jQuery(this).css('backgroundColor');
var parentEl = this.parentNode;
- while(oldColor == 'transparent' && parentEl) {
+ while(oldColor == 'transparent' && parentEl && parentEl.nodeType !== 1) {
oldColor = jQuery(parentEl).css('backgroundColor');
parentEl = parentEl.parentNode;
}