fix error

This commit is contained in:
chiu 2021-09-05 23:42:34 +08:00
parent 4c3ffc2179
commit a00c5c4b7f
4 changed files with 4 additions and 4 deletions

View File

@ -43,7 +43,7 @@
if(document.getElementById("calendar-widget_module") == null){
var tag = document.createElement('script');
tag.setAttribute("id", "calendar-widget_module");
tag.src = "/assets/calendar_widget.js";
tag.src = "<%= asset_path('calendar_widget.js') %>";
tag.onload = function(){
$("div.widget-calendar-1[data-module=calendar]").each(function(index){
var calendar = $(this),

View File

@ -59,7 +59,7 @@
if(document.getElementById("calendar-widget_module2") == null){
var tag = document.createElement('script');
tag.setAttribute("id", "calendar-widget_module2");
tag.src = "/assets/calendar_widget2.js";
tag.src = "<%= asset_path('calendar_widget2.js') %>";
tag.onload = function(){
$("div.widget-calendar-2[data-module=calendar]").each(function(index){
var calendar = $(this),

View File

@ -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}}
<div class="w-calendar widget-calendar-1 index2" data-module="calendar" data-page-id="{{page_id}}">
<div class='month_template'>

View File

@ -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}}
<div class="w-calendar widget-calendar-2 index3" data-module="calendar" data-page-id="{{page_id}}">
<div class="w-calendar-title">