Hi,
first of all, this module really rocks!

Unfortunately I'm experiencing a problem with (very likely) some javascript (ajax?) loaded by the Asset Widget in both, version beta 4 and 7.x-1.x-dev.

If the (sliding) Asset Widget is added to a node/add form page with CKeditor, stylesheets of the admin_theme (Seven or any other active admin_theme) are added via javascript to the current page.

That breaks markup vadility because the required opening "head" tag is replaced with two invalid "div" tags.
These invalid tags are added, no matter if aggregation of css/js is enabled or not.
If I completely disable javascript in browser (Firefox or Chrome), the head tag is not replaced and no admin_theme stylesheets are added.

Secondly it very likely breaks the active frontend theme, because of admin_theme stylesheets. It obviously breaks Bartik if Seven is the admin_theme.

How was I able to add the widget to a frontend theme?
I added
$conf['asset_widget_enable_widget_in_front_theme'] = TRUE;
to settings.php

I didn't find that option in the module's documentation, but found the variable_get() function in asset_widget.module. Maybe this setting is not considered to be stable yet.

I have to admit, I have no clue, which script is causing the problem, even after hours of searching.
None of the widget's javascripts seems to add something to the html head.
The only thing I could find out is, that this adding of markup happens relatively late in page loading.
If I set some breakpoints in the widget's init functions (via Firebug), the problem doesn't occur at all.
Could the problem have something to do with view's ajax stuff?

Comments

indigoxela’s picture

Issue summary: View changes