I use the colorbox to view thumbnails pics and then close them. After this when I click on the slide down top draw it slides down but then right back up. If I reload the page or navigate to another page the slide down top draw will work.

Comments

djackson13’s picture

Title: slide down top draw won't work if I've clicked a colorbox pic. I have to reload page » search form

I'm also having problems with the search form block in the header. It is only showing up for the administrator even though I've set the roles to let everyone view it.

Jeff Burnz’s picture

Not sure about the permissions on the search form (not a theme related issues, maybe a block visibility issue or permissions).

Regarding the slide draw, what browser are you using, or does it not matter?

djackson13’s picture

Title: search form » slide down top draw won't work if I've clicked a colorbox pic. I have to reload page

I've had this problem in firefox 10, chrome 17, and safari 5. I haven't checked any other browsers. You can check it out for yourself at http://hereaboutspokane.com

like I said the top draw slide down won't stay down if I've previously used the colorbox on that same page load.

Jeff Burnz’s picture

I see, not sure if the issue is with the theme or Colorbox js, clearly there is some issue there with slideUp() and slideDown(), I'll put some time towards it.

RusRabbit’s picture

Recently got the same problem. Still don't know what's happening, but here's the solution:

draw.js

(function ($) {
  Drupal.behaviors.ContentDisplayToggleDraw = {
    attach: function(context) {
       $('#toggle-wrapper a').bind('click', function() {
          $('#draw').slideToggle('slow');
          event.preventDefault();
       });
    }
  }
})(jQuery);

RusRabbit’s picture

Status: Active » Needs review
Jeff Burnz’s picture

Version: 7.x-2.0-rc3 » 7.x-3.x-dev
Status: Needs review » Fixed

Works good for me, I think I'll speed this up a bit and use 400 instead of slow (600). Fast (200) seems a bit fast, but slow is really slowww.

Needs backport to 2.x

RusRabbit’s picture

Oops. just one correction:

instead of
$('#toggle-wrapper a').bind('click', function() {
use
$('#toggle-wrapper a').bind('click', function(event) {

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

duit’s picture

Thanks RusRabbit:-)