a thought about the add/remove css funcs
authorsenator <lebbeous@esilibrary.com>
Thu, 3 Feb 2011 20:40:34 +0000 (15:40 -0500)
committersenator <lebbeous@esilibrary.com>
Thu, 3 Feb 2011 20:40:34 +0000 (15:40 -0500)
Open-ILS/web/opac/skin/kcls-wire/js/misc.js

index 31165ed..8ca55fd 100644 (file)
@@ -28,6 +28,10 @@ function swapCSSClass(obj, old, newc) {
 }
 
 function addCSSClass(e,c) {
+    /* XXX I've seen much simpler implementation of this idea that just
+     * do a regexp replace on e.className.  Any reason why we're making
+     * it so hard here? I could see the justification if there's a certain
+     * browser that doesn't cooperate. */
        if(!e || !c) return;
 
        var css_class_string = e.className;