FELIX-975 : Add jquery as standard javascript library to all plugins, make us of jquery for manipulating the dom to get cross-browser compatibility. Fix bundle and components plugins for IE
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@750492 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/webconsole/src/main/resources/res/ui/ui.js b/webconsole/src/main/resources/res/ui/ui.js
index b022b98..ae4d6a2 100644
--- a/webconsole/src/main/resources/res/ui/ui.js
+++ b/webconsole/src/main/resources/res/ui/ui.js
@@ -93,8 +93,7 @@
if (cssClass)
{
- element.setAttribute( "class", cssClass ); // non-IE
- element.setAttribute( "className", cssClass ); // IE
+ $(element).addClass(cssClass);
}
if (attrs)
@@ -106,12 +105,12 @@
var styles = attrs[lab];
for (var styleName in styles)
{
- element.style[styleName] = styles[styleName];
+ $(element).css(styleName, styles[styleName]);
}
}
else
{
- element.setAttribute( lab, attrs[lab] );
+ $(element).attr( lab, attrs[lab] );
}
}
}