Author: rande
Date: 2010-05-21 18:05:34 +0200 (Fri, 21 May 2010)
New Revision: 29574
Modified:
plugins/swCombinePlugin/trunk/lib/config/swCombineViewConfigHandler.class.php
Log:
[swCombinePlugin] make sure the javascript are always loaded first
Modified:
plugins/swCombinePlugin/trunk/lib/config/swCombineViewConfigHandler.class.php
===================================================================
---
plugins/swCombinePlugin/trunk/lib/config/swCombineViewConfigHandler.class.php
2010-05-21 15:58:56 UTC (rev 29573)
+++
plugins/swCombinePlugin/trunk/lib/config/swCombineViewConfigHandler.class.php
2010-05-21 16:05:34 UTC (rev 29574)
@@ -47,8 +47,15 @@
$javascripts = $this->addAssets('javascripts', $javascripts, false);
// combine
- $javascripts = $this->combineValues('javascript', $javascripts, $viewName);
+ $t_javascripts = $this->combineValues('javascript', $javascripts,
$viewName);
+ // make sure the combined javascripts are always loaded first
+ $javascripts = array();
+ foreach($t_javascripts as $javascript)
+ {
+ $javascripts[] = array($javascript => array('position' => 'first'));
+ }
+
$js = $this->addAssets('Javascript', $javascripts);
// set current js and css loaded, also add information about the current
defined assets
@@ -330,4 +337,4 @@
return array_values($tmp);
}
-}
\ No newline at end of file
+}
--
You received this message because you are subscribed to the Google Groups
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/symfony-svn?hl=en.