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.
Contrary to what is mentioned in the release notes for 3.7, views UI doesn't work correctly if jQuery 1.8 is selected in the jQuery udate module.
Best.
Comment | File | Size | Author |
---|---|---|---|
#3 | views ajax error.jpg | 28.19 KB | brulain |
Comments
Comment #1
chats CreditAttribution: chats commentedI've got the same issue...doesn't work with jquery 1.7 or 1.8
Comment #2
Mołot CreditAttribution: Mołot commentedSame here, on dev versions.
Comment #3
brulain CreditAttribution: brulain commentedFor example, if I click on the preview button, an ajax error message displays (see files 'views ajax error.jpg' attached). It happens with all jQuery version selected in jQuery Update (1.5, 1.7 or 1.8).
If I disable jQuery Update module, the same error message appears, but in this case 'Ready state' = 4.
Comment #4
JJmonterey CreditAttribution: JJmonterey commentedI was getting white screen ajax errors with jquery 1.8 and have dropped back to 1.5 and the problem has disappeared.
Comment #5
smhanes CreditAttribution: smhanes commentedI'm using jQuery Update set to 1.7, Production, and using the Google CDN. Views UI 'mostly' works, but some events do not get fired. Example, if I check Create label for a field, nothing happens. I have to downgrade jQuery to 1.5, modify my Views, and then change jQuery back.
Also, I've noticed that using different CDNs cause modules that rely on jQuery to behave in different ways.
Comment #6
Mołot CreditAttribution: Mołot commentedJust wonder... how do we know if it's not jQuery Update issue rather than Views one? #5 suggests something strange happens with jquery itself.
Comment #7
brulain CreditAttribution: brulain commented@#6
This also happens if jQuery Update is disabled...
Comment #8
Mołot CreditAttribution: Mołot commentedbrulain - So you say issue's title is wrong? It does not happen for me without jQuery Update. If you experience more universal problem, consider editing issue title and describing it a bit more.
Comment #9
gregrenner CreditAttribution: gregrenner commentedI too am still experiencing the Views UI bug in v3.7 when I set jquery update to v1.8. When I click anything that brings up the views modal, the modal is aligned to the top left of the window and clicking any of the modal's action buttons (apply, cancel, remove) the page reloads with just JSON output.
This behavior is identical to how it was breaking with Views v3.6 and below (with Jquery 1.8), so I'm not sure what fix they're referring to on: http://drupal.org/node/1802198
Switching jquery to 1.5 or 1.7 seems to fix this issue, but 1.8 still breaks Views UI.
Comment #10
krima CreditAttribution: krima commentedSame problem
Comment #11
webbymatt CreditAttribution: webbymatt commentedFor me the overlay dialogue in Views opens in the top-left and upon submitting just shows a load of code on the page. Basically it completely fails. Using jQuery 1.7 fixes the issue.
Comment #12
cyborg_572 CreditAttribution: cyborg_572 commentedI'm finding that with anything above jQuery 1.5, everything seems to work perfectly, except for the fields that appear and disappear based on the value of checkboxes. (I'm using views 7.x-3.5 though)
Comment #13
raino CreditAttribution: raino commentedWe have the same problem webbymatt has.
When we use jQuery 1.7 or 1.8 Views UI stops working: the overlay dialogue in Views opens in the top-left, weight toggle for field disappears and, upon saving, we got JSON output and the views IS NOT saved.
Comment #14
deggertsen CreditAttribution: deggertsen commentedI have the same problem as #13 except that it works with jQuery 1.7, just not 1.8. This is frustrating though, because I am trying to use other functionality that requires jQuery 1.8.
Comment #15
Matthew Cooper CreditAttribution: Matthew Cooper commentedI managed to fix this by updating to the dev version of Jquery_update, It's a bug caused by JQuery UI calling old Jquery function names.
If you can't use the dev version you could also hack around it by using jQuery.curCSS = jQuery.css;
Comment #16
deggertsen CreditAttribution: deggertsen commentedThanks for the solution @Matthew Cooper. Unfortunately, Views Slideshow Cycle appears to not work with jQuery 1.8 either at this point so there is yet another problem I have to overcome. This issue could probably be marked as fixed though as that is a separate issue. I'll mark it as needs review and if anybody else can confirm that #15 fixes the issue I think they could safely mark this as fixed.
Comment #17
jordanjustice CreditAttribution: jordanjustice commentedUpgrading to the dev version fixed this all for me. It allows you to use 1.8 for the site, and then 1.7 or lower for all admin pages, including the admin views page.
Comment #18
knalstaaf CreditAttribution: knalstaaf commented#1802198: Views UI breaks with jQueryUI 1.8.2
Comment #19
ashDn999 CreditAttribution: ashDn999 commentedThis needs to be fixed. I'm using a Bootstrap Admin theme which requires a newer version of jQuery to be used for the admin. Views' functionality is not working. I'm having the same checkbox-not-working issue as others on here. I need it to work with jQuery version 1.10.
Comment #20
ashDn999 CreditAttribution: ashDn999 commentedI ended up just using the Bootstrap admin theme for non-admin roles. And using Drupal default jQuery for the admin role.
Comment #21
ashDn999 CreditAttribution: ashDn999 commentedEnded up just using Drupal default jQuery in the admin, with the bootstrap theme for non-admin roles.
Comment #22
ugintl CreditAttribution: ugintl commentedThis is a good idea, but what to do when a contrib module requires an older version and you want to use bootstrap as well on your site.