--- a/includes/clientside/static/toolbar.js Sat Sep 08 15:06:28 2007 -0400
+++ b/includes/clientside/static/toolbar.js Sat Sep 08 22:58:38 2007 -0400
@@ -9,7 +9,7 @@
{
if(obj.id == 'mdgToolbar_article' || obj.id == 'mdgToolbar_discussion')
{
- obj.className = '';
+ $(obj).rmClass('selected');
}
obj = obj.nextSibling;
}
@@ -22,7 +22,7 @@
obj = document.getElementById('pagebar_main').firstChild.nextSibling;
while(obj)
{
- if ( obj.className != 'selected' )
+ if ( !$(obj).hasClass('selected') )
{
obj = obj.nextSibling;
continue;
@@ -30,7 +30,7 @@
if(obj.id != 'mdgToolbar_article' && obj.id != 'mdgToolbar_discussion')
{
if ( obj.className )
- obj.className = '';
+ $(obj).rmClass('selected');
}
obj = obj.nextSibling;
}
@@ -46,7 +46,7 @@
if(typeof(dom) == 'object')
{
unselectAllButtonsMajor();
- document.getElementById('mdgToolbar_'+which).className = 'selected';
+ $('mdgToolbar_'+which).addClass('selected');
}
}
@@ -57,7 +57,7 @@
if(typeof(document.getElementById('mdgToolbar_'+which)) == 'object')
{
unselectAllButtonsMinor();
- document.getElementById('mdgToolbar_'+which).className = 'selected';
+ $('mdgToolbar_'+which).addClass('selected');
}
}