diff options
Diffstat (limited to 'framework/Web/Javascripts/extended/dom.js')
-rw-r--r-- | framework/Web/Javascripts/extended/dom.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/framework/Web/Javascripts/extended/dom.js b/framework/Web/Javascripts/extended/dom.js new file mode 100644 index 00000000..4c664de7 --- /dev/null +++ b/framework/Web/Javascripts/extended/dom.js @@ -0,0 +1,6 @@ +Object.extend(Element, {
+ condClassName : function (element, className, cond)
+ {
+ (cond?Element.addClassName:Element.removeClassName)(element,className);
+ }
+});
\ No newline at end of file |