Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When selected the login block cycles through expand - collapse depending on the number of times the refresh button has been used. If i used the refresh button 10 times then the block expands - collapses 10 plus a few times ... if 15 times then 15 plus a few.
See attachment for picture of the login block.
Code for the script controlling the block follows:
/*--- top tab panel ---*/
Drupal.behaviors.forDrupalTabPanel = function(context) {
// top panel tab effect
$('.toppanel-tab').click(function() {
$('.toppanel-container').slideToggle();
});
// top panel close button
$('.close-button').click(function() {
$('.toppanel-tab').trigger('click');
});
};
Comment | File | Size | Author |
---|---|---|---|
Picture1.jpg | 19.77 KB | rkodrupal |
Comments
Comment #1
mqanneh