fix error
This commit is contained in:
parent
4c3ffc2179
commit
a00c5c4b7f
|
@ -43,7 +43,7 @@
|
||||||
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");
|
||||||
tag.src = "/assets/calendar_widget.js";
|
tag.src = "<%= asset_path('calendar_widget.js') %>";
|
||||||
tag.onload = function(){
|
tag.onload = function(){
|
||||||
$("div.widget-calendar-1[data-module=calendar]").each(function(index){
|
$("div.widget-calendar-1[data-module=calendar]").each(function(index){
|
||||||
var calendar = $(this),
|
var calendar = $(this),
|
||||||
|
|
|
@ -59,7 +59,7 @@
|
||||||
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");
|
||||||
tag.src = "/assets/calendar_widget2.js";
|
tag.src = "<%= asset_path('calendar_widget2.js') %>";
|
||||||
tag.onload = function(){
|
tag.onload = function(){
|
||||||
$("div.widget-calendar-2[data-module=calendar]").each(function(index){
|
$("div.widget-calendar-2[data-module=calendar]").each(function(index){
|
||||||
var calendar = $(this),
|
var calendar = $(this),
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<script type="text/javascript" src="/assets/calendar_widget.js" id="calendar-index_module"></script>
|
<script type="text/javascript" src="<%= asset_path('calendar_widget.js') %>" id="calendar-index_module"></script>
|
||||||
{{style_tag}}
|
{{style_tag}}
|
||||||
<div class="w-calendar widget-calendar-1 index2" data-module="calendar" data-page-id="{{page_id}}">
|
<div class="w-calendar widget-calendar-1 index2" data-module="calendar" data-page-id="{{page_id}}">
|
||||||
<div class='month_template'>
|
<div class='month_template'>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<script type="text/javascript" src="/assets/calendar_widget2.js" id="calendar-index_module2"></script>
|
<script type="text/javascript" src="<%= asset_path('calendar_widget2.js') %>" id="calendar-index_module2"></script>
|
||||||
{{style_tag}}
|
{{style_tag}}
|
||||||
<div class="w-calendar widget-calendar-2 index3" data-module="calendar" data-page-id="{{page_id}}">
|
<div class="w-calendar widget-calendar-2 index3" data-module="calendar" data-page-id="{{page_id}}">
|
||||||
<div class="w-calendar-title">
|
<div class="w-calendar-title">
|
||||||
|
|
Loading…
Reference in New Issue