From b3509c18684c3c97efb83a7e28789031eccf94fe Mon Sep 17 00:00:00 2001 From: senator Date: Thu, 3 Feb 2011 15:40:34 -0500 Subject: [PATCH] a thought about the add/remove css funcs --- Open-ILS/web/opac/skin/kcls-wire/js/misc.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Open-ILS/web/opac/skin/kcls-wire/js/misc.js b/Open-ILS/web/opac/skin/kcls-wire/js/misc.js index 31165eda49..8ca55fd0c7 100644 --- a/Open-ILS/web/opac/skin/kcls-wire/js/misc.js +++ b/Open-ILS/web/opac/skin/kcls-wire/js/misc.js @@ -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; -- 2.11.0