Jquery fullcalendar两天事件跨度天仅在一天内显示

Jquery fullcalendar两天事件跨度天仅在一天内显示,jquery,fullcalendar,Jquery,Fullcalendar,如果活动是隔夜预订,我想在不同的日期显示完整的日历月视图活动 我对这个主题没有任何概念,因为它被定制为在一天内显示事件,并且不支持拖动选项 我们将字符串作为文本传递以显示内容 我的Javascript集成代码是: $(document).ready(function() { var calendar = $('#calendar').fullCalendar({ theme: true, dayClick: function(date, allDay, jsEvent, vie

如果活动是隔夜预订,我想在不同的日期显示完整的日历月视图活动

我对这个主题没有任何概念,因为它被定制为在一天内显示事件,并且不支持拖动选项

我们将字符串作为文本传递以显示内容

我的Javascript集成代码是:

$(document).ready(function() {
var calendar = $('#calendar').fullCalendar({
    theme: true,
     dayClick: function(date, allDay, jsEvent, view) {
        if (allDay) {
            // Clicked on the entire day
            convertedDate= convert(date);
            if ($(jsEvent.target).is('span.fc-day-content') ){
                // Clicked on the day number
                      if(${managePriv ==1}){
                          var selectedDate = document.getElementById("selectedDate").value;
                          window.open("<%=contextPath%>/rooms/roomReservationFrame.action?startingtime="+convertedDate+"&screenFlag=M&selectedDate="+selectedDate,"roomReservation","width=840,height=460,scrollBars=no");
                      }
            }
        } 
    }, 
    header: {
        left: '',
        center: '',
        right: ''
    },
    events: ${jsonstring} ,

    eventRender: function(event, element, view) {
        element.find('span.fc-event-title').html(element.find('span.fc-event-title').text());
         if (event.start.getMonth() != view.start.getMonth())
            return false; 
    }

});
var date = new Date();
var d = 1;
var m="${month}";
var y="${year}";
$('#calendar').fullCalendar('gotoDate', y,m,d);

    if(${managePriv !=1}){
      $('span.fc-day-content').css({'visibility': 'hidden'});
    }
});
$(文档).ready(函数(){
var calendar=$(“#calendar”).fullCalendar({
主题:真的,
dayClick:函数(日期、全天、jsEvent、视图){
如果(全天){
//点击了一整天
convertedDate=转换(日期);
if($(jsEvent.target).is('span.fc day content')){
//点击日期
if(${managePriv==1}){
var selectedDate=document.getElementById(“selectedDate”).value;
window.open(“/rooms/roomReservationFrame.action?startingtime=“+convertedDate+”&screenFlag=M&selectedDate=“+selectedDate”,roomReservation”,“宽度=840,高度=460,滚动条=否”);
}
}
} 
}, 
标题:{
左:'',
中心:'',
对:“”
},
事件:${jsonstring},
eventRender:函数(事件、元素、视图){
element.find('span.fc事件标题').html(element.find('span.fc事件标题').text());
if(event.start.getMonth()!=view.start.getMonth())
返回false;
}
});
变量日期=新日期();
var d=1;
var m=“${month}”;
var y=“${year}”;
$(“#日历”).fullCalendar('gotoDate',y,m,d);
if(${managePriv!=1}){
$('span.fc day content').css({'visibility':'hidden'});
}
});

这里的问题是,我们必须为每个json对象添加颜色:'colorcode'属性,因为它正在显示,但默认情况下,其显示白色背景仅在一天内显示,而div class='fc event title'我将直接向该div添加文本,所以它只是像纯文本一样打印标签。这个问题需要任何澄清吗?重播回我

你想要的是,需要在标题中设置你自己的html,对吗?是的,我也想这么做,很抱歉,我最近修复了这个。在我的json字符串中,它们是OVRINDING颜色代码,所以,即使重叠数据显示在后台,我也无法看到,因为我的json字符串颜色覆盖了不显示内容。现在我已经修改了json字符串及其颜色代码。