Closed (cannot reproduce)
Project:
Views (for Drupal 7)
Version:
7.x-3.0-rc1
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Nov 2011 at 11:49 UTC
Updated:
19 Jan 2012 at 00:59 UTC
I encountered problems in IE8 with the AJAX settings enabled on a view.
The settings seemed to be ignored (whereas it was working fine in other browsers).
Turned out that the class ".views-processed" was not added to the view.
After a few debugging, i found that the problem is coming from this part of the ajax_view file (line 44):
$(view).filter(':not(.views-processed)')
// Don't attach to nested views. Doing so would attach multiple behaviors
// to a given element.
.filter(function() {
// If there is at least one parent with a view class, this view
// is nested (e.g., an attachment). Bail.
return !$(this).parents('.view').size();
})
.each(function() {....The !$(this).parents('.view').size(); condition return false on IE8, because the size() property is not available.
I just remove the filter to solve the problem (I dont use nested views), but I guess it would be better to change the condition so that it works both in IE and other browser.
Comments
Comment #1
dawehnerWe refactored this javascript file from scratch, which produced a much nicer code.
Parallel from this the posted code from above code uses once() in a way that it should not cause problems anymore. Can you please try to verify it with the current version of views?
Comment #2
esmerel commented