Author: ornicar2
Date: 2010-01-19 17:57:02 +0100 (Tue, 19 Jan 2010)
New Revision: 26888
Modified:
plugins/dmWidgetGalleryPlugin/lib/dmWidgetContentGalleryView.php
Log:
[Diem][dmWidgetGalleryPlugin] fixed javascript cycle inclusion when widget is
cached
Modified: plugins/dmWidgetGalleryPlugin/lib/dmWidgetContentGalleryView.php
===================================================================
--- plugins/dmWidgetGalleryPlugin/lib/dmWidgetContentGalleryView.php
2010-01-19 16:47:08 UTC (rev 26887)
+++ plugins/dmWidgetGalleryPlugin/lib/dmWidgetContentGalleryView.php
2010-01-19 16:57:02 UTC (rev 26888)
@@ -9,7 +9,7 @@
$this->addRequiredVar(array('medias', 'method', 'animation'));
- $this->addJavascript('dmWidgetGalleryPlugin.view');
+ $this->addJavascript(array('dmWidgetGalleryPlugin.view',
'dmWidgetGalleryPlugin.cycle'));
}
protected function filterViewVars(array $vars = array())
@@ -91,11 +91,6 @@
$vars = $this->getViewVars();
$helper = $this->getHelper();
-
- if ('slideshow' == $vars['animation'])
- {
- $this->addJavascript('dmWidgetGalleryPlugin.cycle');
- }
$html = $helper->£o('ol.dm_widget_content_gallery.list', array('json' =>
array(
'animation' => $vars['animation'],
--
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.