Here's the next rendition of the panel.js modified to conform to JQuery. It's still Mansionian. Certainly someone with a modicum of JS/JQ experience could figure out how to clean it up.
@JustinTadlock this isn't specific to Hybrid News in the sense that no theme CSS needs to be modified in order for the plugin to work properly. These mods should open the plugin up to many more WP themes because it mitigates the issue of not being able to click on active elements within 35px of the top. That said, users may have to move active elements left in the event the Open/Close tab overlaps them.
Here's the .js code:
var $j = jQuery.noConflict();
$j(document).ready(
function() {
$j ( '#sliding-panel .open' ).click(
function() {
$j ( '#sliding-panel .panel' ).slideDown( 'slow' );
$j ( '#sliding-panel .tab' ).removeClass( 'closed' );
$j ( '#sliding-panel' ).addClass( 'open' );
$j ( '#sliding-panel .tab' ).addClass( 'current' );
}
);
$j ( '#sliding-panel .close' ).click(
function() {
$j ( '#sliding-panel .panel' ).slideUp( 'slow' );
$j ( '#sliding-panel' ).addClass( 'closed' );
$j ( '#sliding-panel' ).removeClass( 'open' );
$j ( '#sliding-panel .tab' ).removeClass( 'current' );
}
);
$j ( '#sliding-panel .toggle a' ).click(
function () {
$j ( '#sliding-panel .toggle a' ).toggle();
}
);
}
);
panel.css needs to be modified as follows:
1) Remove z-index from the following elements:
#sliding-panel-container;
#sliding-panel; and
#sliding-panel .tab .
2) Add the following class element:
.open { z-index: 99999; }
3) Add z-index: 0; to #sliding-panel .tab .toggle