Commits

Bertrand Bordage committed fc70d81 Draft

Allows several plugins on one page.

Comments (0)

Files changed (1)

cmsplugin_nivoslider/templates/nivo/slider.html

 {% addtoblock "js" %}
     <script type="text/javascript">
         $(function() {
-            $('#nivoslider').nivoSlider({
+            $('#nivoslider{{object.pk}}').nivoSlider({
                 effect: '{{object.effect}}',
                 animSpeed: {{object.anim_speed}},
                 pauseTime: {{object.pause_time}},
 {% endaddtoblock %}
 
 <div class="slider-wrapper theme-{{object.theme}}">
-    <div id="nivoslider" class="nivoSlider"
+    <div id="nivoslider{{object.pk}}" class="nivoSlider"
         style="
             {% if object.width %}
                 width:{{object.width}}px;