Author: johnnyoffline
Date: 2010-03-30 18:23:46 +0200 (Tue, 30 Mar 2010)
New Revision: 28884

Modified:
   
plugins/pkMediaCMSSlotsPlugin/trunk/modules/pkContextCMSSlideshow/templates/_slideshow.php
Log:
cdata wrapper around javascript helps with validation


Modified: 
plugins/pkMediaCMSSlotsPlugin/trunk/modules/pkContextCMSSlideshow/templates/_slideshow.php
===================================================================
--- 
plugins/pkMediaCMSSlotsPlugin/trunk/modules/pkContextCMSSlideshow/templates/_slideshow.php
  2010-03-30 16:15:19 UTC (rev 28883)
+++ 
plugins/pkMediaCMSSlotsPlugin/trunk/modules/pkContextCMSSlideshow/templates/_slideshow.php
  2010-03-30 16:23:46 UTC (rev 28884)
@@ -31,7 +31,8 @@
 <?php if (count($items) > 1): ?>
 <script type="text/javascript" charset="utf-8">
        $(document).ready(function() {
-
+               // <![CDATA[
+       
                        var position = 0;
                        var img_count = <?php echo count($items)-1 ?>;
                        var slideshowItems = $('#pk-slideshow-<?php echo $id ?> 
.pk-slideshow-item');
@@ -120,12 +121,17 @@
          interval();
        
        });
+
+       // ]]>  
 </script>
 <?php elseif (count($items) == 1): ?>
 <script type="text/javascript" charset="utf-8">
+// <![CDATA[
+
   <?php // Make sure a single-image slideshow is not hidden entirely ?>
        $(document).ready(function() {
      $('#pk-slideshow-item-<?php echo $id ?>-0').show();
        });
+       // ]]>
 </script>
 <?php endif ?>
\ 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.

Reply via email to