diff plugins/content_types/mpiwg_geobrowser_storyTelling.inc @ 1:ea066ce001bd

bug fixes, works now without admin rights
author Dirk Wintergruen <dwinter@mpiwg-berlin.mpg.de>
date Fri, 29 May 2015 13:59:32 +0200
parents b57c7821382f
children
line wrap: on
line diff
--- a/plugins/content_types/mpiwg_geobrowser_storyTelling.inc	Thu May 28 10:28:12 2015 +0200
+++ b/plugins/content_types/mpiwg_geobrowser_storyTelling.inc	Fri May 29 13:59:32 2015 +0200
@@ -24,6 +24,9 @@
             <legend>Data History</legend>
         </fieldset>
         <script type="text/javascript">
+  if (typeof StorytellingWidget_l=="undefined")
+	    {
+         
             var storytellingDiv = document.getElementById("storytellingContainerDiv");
             var storytelling = new WidgetWrapper();
             var storytellingWidget = new StorytellingWidget(storytelling,storytellingDiv);
@@ -38,6 +41,8 @@
                     document.dispatchEvent(widgetLoadedEvent);
                 }
             });
+	    StorytellingWidget_l=true;
+}
         </script>
     ';