Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //ability to expand and collapse dropdown blocks
- Drupal.behaviors.mapsindeedDropdownBlock = function (context) {
- $('.mapsindeed-dropdown-block .content').hide();
- $('.mapsindeed-dropdown-block h2.block-title').bind('click', function(){
- $(this).siblings('.content').slideToggle('slow', function() {
- });
- $(this).parents('.mapsindeed-dropdown-block').toggleClass('expanded');
- });
- }
- $('.mapsindeed-dropdown-block .content').addClass('expanded');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement