Actually, I've kind of almost figured this out. Kind of. I now have the event getting stopped and everything, I just need to make the effect work
Event.observe(window, 'load', function() {
Event.observe('unreadAlerts_menu', 'click', function(e) {
Event.stop(e);
var popup_id = e.target.identify() + '_popup';
Effect.toggle(popup_id, 'blind');
});
});
Just checked the console and I'm seeing this:
Quote:ReferenceError: Effect is not defined
Does that mean that MyBB doesn't come with scriptaculous as I believed it did?
effects.js should be in the mybb package; I added it to headerinclude as I think it was not referred to anywhere.
Yeah, it is in the package but isn't included. EIther way, I now have it running fine
To use it all it takes is an edit to headerinclude to remove the jquery scripts and add this:
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/scriptaculous.js?load=effects"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/myalerts.prototype.js"></script>
EXCELLENT. I just so happen to have that in my headerinclude already
Nice one
If you happen to take a look at my most recent commit on github you should have a sexy dropdown now