Closed (won't fix)
Project:
Dialog
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Jan 2011 at 01:37 UTC
Updated:
13 Jul 2015 at 15:53 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
drewish commentedIt'd be better if you could re-roll this without the whitespace changes. Try using "cvs diff -upw".
Comment #2
drewish commentedAlso, could you explain how I could generate the problem and make sure the patch resolves?
Comment #3
te-brian commentedI'll try to get a patch in the morning. To reproduce the problem:
1. Make sure css and js aggregation is on.
2. In one tab/browser load a page (make sure you are not user 1).
3. In a different tab clear all caches (I use admin_menu, basically cause the aggregate to be regenerated).
4. In the first tab, open a dialog.
If you watch the requests (in firebug or whatever) you will see it trying to overload all of the css/js on the site because the aggregate has changed. CTools contains logic that normally prevents this by keeping track of all individual css/js files on the page. The ajax include defines a constant that triggers this.
Comment #4
drewish commentedGreat, confirmed the problem and that the fix addresses it. I modified the comment a bit to help clarify its purpose.
Committed to 6.x kicking this over to 7.x for review.
Comment #5
te-brian commentedThanks drewish, sorry again about the whitespace ... I have eclipse set to trim all extra whitespace. Keeps my code clean but gets me into trouble with patches.
Comment #6
jptarantoI'm reporting this issue on 7.x-dev latest - when using JS aggregation, the jquery.xLazyLoader is loading in all JS files again.
The patch above (from around a year ago now) doesn't apply.
Cheers
Comment #7
wesnick commentedHere is a patch to resolve this issue on D7. Since we are not using ctools, we have to just use the technique found in function ajax_render
Comment #8
wesnick commentedThat patch didn't link correctly, also setting to needs review
Comment #9
wesnick commentedArrrg... and the patch
Comment #10
bendikrb commentedI can confirm that #9 works. Thank you!
Comment #11
mvcworks perfectly for me. i haven't even turned css or js aggregation on for my site, but color.css was being loaded without the color module's preprocessing meaning all my theme colours were being reset to their default values both in the dialog and in the rest of the page. this module should probably be doing that preprocessing, which would be another bug, but it definitely shouldn't be reloading css or js which are already present.
Comment #12
mvcfor the record, an open bug for the lack of preprocessing is here: #1994676: Dialog content rendered in inproper way
but again, that's a larger issue and this patch fixes the smaller, simpler problem.
Comment #13
devin carlson commentedThe 7.x-1.x branch of the Dialog module is unsupported.