在Fullcalender中使用Lightbox或Fancybox

时间:2019-07-10 17:13:05

标签: fullcalendar fancybox lightbox

我要在我的网站上使用fullcalendar v3,并且要使用lightbox或fancybox v3。

当我单击标题但出现错误时(在花式框中)

Uncaught RangeError: Maximum call stack size exceeded
    at Object.toString (<anonymous>)
    at Function.isPlainObject (jquery.min.js:2)

网上的灯箱错误完成。

我已经在Stackoverflow中尝试了fancybox v2的解决方案。

<script type="text/javascript">
    $(document).ready(function() {
        $('#calendar').fullCalendar({
            slotDuration: '00:15:00', /* If we want to split day time each 15minutes */
            minTime: '08:00:00',
            maxTime: '19:00:00',
            defaultView: 'month',
            hiddenDays: [0,6],
            editable: false,
            locale:'tr',
            handleWindowResize: true,
            droppable:false,
            selectable:true,


            eventRender: function(event, eventElement) {
           if (event.imageurl) {
          // eventElement.find("div.fc-content").prepend("<img 
          src='" + event.imageurl +"' width='16' height='16'>"),
         eventElement.attr("href",event.imageurl),
         eventElement.attr("data-fancybox",event.yid);  
         }
     },

我想在单击时显示日期图片。错误消息是:

Uncaught RangeError: Maximum call stack size exceeded
  at Object.toString (<anonymous>)
  at Function.isPlainObject (jquery.min.js:2)
  at Function.k.extend.k.fn.extend (jquery.min.js:2)
  at Function.k.extend.k.fn.extend (jquery.min.js:2)
  at Function.k.extend.k.fn.extend (jquery.min.js:2)
  at Function.k.extend.k.fn.extend (jquery.min.js:2)
  at Function.k.extend.k.fn.extend (jquery.min.js:2)
  at Function.k.extend.k.fn.extend (jquery.min.js:2)
  at Function.k.extend.k.fn.extend (jquery.min.js:2)
  at Function.k.extend.k.fn.extend (jquery.min.js:2)

0 个答案:

没有答案