1
0
mirror of https://github.com/Hutchy68/pivot.git synced 2025-07-12 04:14:20 +02:00
pivot/assets/scripts/pivot.js
MW install maintain even with core development 5b1a0c025e Sidebar improvements
2018-03-28 17:43:26 -04:00

20 lines
788 B
JavaScript

jQuery(document).ready(function() {
jQuery(document).foundation(function (response) {
if (window.console) console.log(response.errors);
});
// The Echo extension puts an item in personal tools that Foreground really should have in the top menu
// to make this easier, we move it here and loaded earlier to speed up transform
jQuery("#pt-notifications").prependTo("#echo-notifications-alerts");
jQuery("#pt-notifications-message").prependTo("#echo-notifications-messages");
jQuery("#pt-notifications-alert").prependTo("#echo-notifications-alerts");
jQuery("#pt-notifications-notice").prependTo("#echo-notifications-notice");
});
jQuery('.portal > li label').click(function() {
$(this).parent().find('ul').toggle();
$( this ).toggleClass( "active" );
});