atk4/atk4 — pull request #117 by DarkSide666 (2012-10-08 16:59:27+00:00)
Title: Update templates/js/start-atk4.js

This fix will resolve problems with dynamically including CSS files. Till now they was included as in global context in document head. That breaks relative URLs in CSS file which we like to use almost everywhere.
So, the fix is simple - don't include CSS code directly into head, but include link to that stylesheet into head. Then nothing breaks and relative URLs in CSS file works as clock.

I don't see any drawback of this, because one extra request for CSS file is made anyway.
As far as I tested it - it works.

I'll publish small changes in autocomplete addon in a minute and then you'll be able to see how I use this. I can simply include CSS file like this and nothing breaks:
$this->other_field->js(true)
->_load('autocomplete_univ')
->_css('autocomplete') // loads properly now
->univ()->myautocomplete($url, $this, $this->options);