When I try to flip to a tab with a view in it, the loading image remains even after the loading is done. (Screenshot attached.) This doesn't happen in tabs with blocks.

CommentFileSizeAuthor
loading-bug.jpg24.15 KBFunkymoses

Comments

pasqualle’s picture

Status: Active » Postponed (maintainer needs more info)

quicktabs.js line 109 (Drupal.quicktabs.tab.prototype.quicktabsAjaxView)

  $.ajax({
    url: ajax_path,
    type: 'GET',
    data: viewData,
    success: function(response) {
      // Call all callbacks.
      if (response.__callbacks) {
        $.each(response.__callbacks, function(i, callback) {
          eval(callback)(target, response);
        });
      }
      tab.stopProgress();
    },
    error: function() { alert(Drupal.t("An error occurred at @path.", {'@path': ajax_path})); },
    dataType: 'json'
  });

This should not happen as the progress bar should be removed right after the view is displayed.

1. Can you try it with other views? Is it a problem for all views?
2. Can you try it with a different browser?
3. Can you tell the 'block cache setting' on the admin/settings/performance page?

andrus_k’s picture

I can confirm this bug. The progress bar does not go away even when the content has successfully loaded. It goes away only when you flip to another tab and then return to the previous tab. The block caching is turned off on my site. The problem occurs on various browsers. I tried Firefox, Chrome, IE. Tried different Views, too.

andrus_k’s picture

Status: Postponed (maintainer needs more info) » Active

Changing status to active. Hope my info helps a bit to squash this bug.

Funkymoses’s picture

update: this appears to be all views that I'm using and like the above user, it happens on Firefox, IE, and Chrome. My block cache is enabled.

pasqualle’s picture

Title: "loading" image doesn't go away when view selected » Progress bar ("Loading" image) doesn't go away when view selected
katbailey’s picture

Assigned: Unassigned » katbailey

I will look into this, making more changes to the js code anyway...

katbailey’s picture

Status: Active » Postponed (maintainer needs more info)

I have moved the call to tab.stopProgress() from the success function of the ajax call to the complete function (where it totally should have been in the first place ;-)).
http://drupal.org/cvs?commit=182588
This problem should now be fixed - please test and let me know.

pasqualle’s picture

here you can see the reason why it did not go away: #410976: Quicktabs not work in IE8 RTM
null value in line 117

eval(callback)(target, response);
pasqualle’s picture

Version: 6.x-2.0-rc2 » 6.x-2.x-dev
Status: Postponed (maintainer needs more info) » Fixed

changing to fixed.
If there still any problems with the progress bar, then please reopen the issue..

Status: Fixed » Closed (fixed)

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

jusyjim’s picture

Status: Closed (fixed) » Active

Using the latest dev version, testing in chrome and ff, having the same problem. Should I not be using dev version?

jusyjim’s picture

You can skip that last comment, I switched to 6.x-2.0-rc2 and it's working. The version change in comment #9 is a little confusing, the version change seemed to me to imply that it was fixed for the dev version.

MarcElbichon’s picture

I've also this problem.
It occurs only on IE (7 for me) and only in views with a sortable column in table style.
In this case, ajax complete function is not triggered.

irous’s picture

(comments removed)

CardinalFang’s picture

Version: 6.x-2.x-dev » 6.x-2.0-rc5

I'm experiencing this problem with 6.x-2.0-rc5. It didn't occur with 6.x-2.0rc4.

rezboom’s picture

I am having the same issue with both the current dev and rc5.

finex’s picture

Confirmed with rc5. Moreover if you have more than two tabs with a view on each tab, when I switch to the second one you will see the persistent "loading" bug, and when I switch to the third tab nothing is loaded (on the third one).

longwave’s picture

Seeing the same as #17 in rc5. This does not occur in rc4.

reallyordinary’s picture

I'm also seeing this in rc5.

Just changed to the latest dev version and that seemed to fix it.

katbailey’s picture

Version: 6.x-2.0-rc5 » 6.x-3.x-dev
Status: Active » Closed (duplicate)

I suspect this is a duplicate of #1159486: Incompatible with JS aggregation(optimisation), feel free to open again if not.