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.
I wanted to customize the loading graphic for our site and the following changes made this easier for me.
Note:
*I used $loading.length instead of $loading.size() as I think it may be faster since it's not a function (correct me if I'm wrong).
*setting initial display of #popups-loading to display:none in css and then switching to block in js after applying top and left hides the repositioning.
Comment | File | Size | Author |
---|---|---|---|
popups.loading.theme_.patch | 1.34 KB | sirkitree |
Comments
Comment #1
starbow CreditAttribution: starbow commentedInteresting. I bet other people would like to use this too. Looks fine with a quick look, but I will need to do some testing. If anyone else reading this wants to test it, let me know what you find.
Comment #2
starbow CreditAttribution: starbow commentedHmm, I really like this idea, but it doesn't seem to work. width and height are 0 for blocks with display:none.
I am reworking it, but curious if it ever worked for you?
Comment #3
starbow CreditAttribution: starbow commentedAh, I get it. It works, just not with the default html.
Comment #4
starbow CreditAttribution: starbow commentedA version of this has been checked into head and will be part of 1.2 alpha2