-
Bug
-
Resolution: Fixed
-
Minor
-
1.9.5
-
None
-
MOODLE_19_STABLE
-
MOODLE_23_STABLE
When a topic is highlighted the light globe symbol on the right side does not toggle.
See Forum post http://moodle.org/mod/forum/discuss.php?d=126393.
Here is the fix:
You have to replace the image \pix\i\marked.gif because marker.gif and marked.gif are the same images.
RCS file: /cvsroot/moodle/moodle/lib/ajax/section_classes.js,v
retrieving revision 1.35.2.8
diff -u -r1.35.2.8 section_classes.js
— section_classes.js 7 May 2009 09:44:07 -0000 1.35.2.8
+++ section_classes.js 11 Aug 2009 08:49:40 -0000
@@ -75,6 +75,10 @@
if (YAHOO.util.Dom.hasClass(this.getEl(),'hidden'))
+ //MWo 090701
+ if (YAHOO.util.Dom.hasClass(this.getEl(),'current'))
}
@@ -323,12 +327,26 @@
}
+//MWo 090701 section_class.prototype.set_highlight
+section_class.prototype.set_highlight = function() {
+ if (!this.highlighted)
else
{ + this.highlightButton.childNodes[0].src = this.highlightButton.childNodes[0].src.replace('marker.gif', 'marked.gif'); + this.highlighted = true; + }+}
+
+
section_class.prototype.toggle_highlight = function() {
if (this.highlighted)
else
{ YAHOO.util.Dom.addClass(this.getEl(), 'current'); + this.highlightButton.childNodes[0].src = this.highlightButton.childNodes[0].src.replace('marker.gif', 'marked.gif');//MWo 090701 this.highlighted = true; }}
- will be (partly) resolved by
-
MDL-31052 update Course AJAX/javascript to YUI3 and replace section_classes.js
- Closed