Mercurial > hg > mpiwg_geobrowser
diff plugins/content_types/mpiwg_geobrowser_storyTelling.inc @ 3:19f75fe342eb
minor changes
author | Dirk Wintergruen <dwinter@mpiwg-berlin.mpg.de> |
---|---|
date | Mon, 12 Oct 2015 08:33:28 +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 Mon Oct 12 08:33:28 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> ';