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.
Problem/Motivation
Views UI or other Ajax based loading did not work because of incorrect variable validation on load.
Proposed resolution
Fix the js for loading.
Remaining tasks
User interface changes
API changes
Original report by @mstef
Getting this on line 21 of the JS whenever using Views with nodes that contain an Addthis widget. Completely breaks the Views UI.
Comment | File | Size | Author |
---|---|---|---|
#4 | 2233585-4.patch | 1.53 KB | matglas86 |
Comments
Comment #1
mstef CreditAttribution: mstef commentedI'm not great with JS but this works for me. Also not sure why this error would even be happening (maybe that should be looked in to instead).
Comment #2
RobLoachComment #3
matglas86 CreditAttribution: matglas86 commentedFor me it did not fix the Views UI. The buttons where not rendered. Here is my renewed patch.
Comment #4
matglas86 CreditAttribution: matglas86 commentedMy last patch did not work with a Views Block with ajax paging. I looked into it and found this solution. It works for toolbox and button widgets.
Comment #5
matglas86 CreditAttribution: matglas86 commentedIn a week I'll be merging this in. Please provide some feedback if there are still problems and describe the exactly the setup that does not work. Thanks!
Comment #6
matglas86 CreditAttribution: matglas86 commentedI did a rerun against head.
Comment #7
matglas86 CreditAttribution: matglas86 commented