fix error
This commit is contained in:
parent
5ee197fdff
commit
4c3ffc2179
|
@ -39,6 +39,7 @@
|
||||||
</div>
|
</div>
|
||||||
<%= stylesheet_link_tag "calendar_widget1" %>
|
<%= stylesheet_link_tag "calendar_widget1" %>
|
||||||
<script>
|
<script>
|
||||||
|
$(document).ready(function(){
|
||||||
if(document.getElementById("calendar-widget_module") == null){
|
if(document.getElementById("calendar-widget_module") == null){
|
||||||
var tag = document.createElement('script');
|
var tag = document.createElement('script');
|
||||||
tag.setAttribute("id", "calendar-widget_module");
|
tag.setAttribute("id", "calendar-widget_module");
|
||||||
|
@ -62,4 +63,5 @@
|
||||||
var head = document.getElementsByTagName("head");
|
var head = document.getElementsByTagName("head");
|
||||||
head[0].appendChild(tag);
|
head[0].appendChild(tag);
|
||||||
}
|
}
|
||||||
|
});
|
||||||
</script>
|
</script>
|
|
@ -55,6 +55,7 @@
|
||||||
</div>
|
</div>
|
||||||
<%= stylesheet_link_tag "calendar_widget2" %>
|
<%= stylesheet_link_tag "calendar_widget2" %>
|
||||||
<script>
|
<script>
|
||||||
|
$(document).ready(function(){
|
||||||
if(document.getElementById("calendar-widget_module2") == null){
|
if(document.getElementById("calendar-widget_module2") == null){
|
||||||
var tag = document.createElement('script');
|
var tag = document.createElement('script');
|
||||||
tag.setAttribute("id", "calendar-widget_module2");
|
tag.setAttribute("id", "calendar-widget_module2");
|
||||||
|
@ -78,4 +79,5 @@
|
||||||
var head = document.getElementsByTagName("head");
|
var head = document.getElementsByTagName("head");
|
||||||
head[0].appendChild(tag);
|
head[0].appendChild(tag);
|
||||||
}
|
}
|
||||||
|
});
|
||||||
</script>
|
</script>
|
Loading…
Reference in New Issue