0

이 메시지를 사용했습니다. fullcalendar-scheduler 해당 이벤트에 대한 모달 팝업 대화 상자를 추가하려고합니다. 저에게 맞지 않습니다. 문제 해결에 도움을주십시오.부트 스트랩 모달 대화 상자에 전체 캘린더 이벤트가 작동하지 않습니다.

이 사전에 모달

<div id="calendarModal" class="modal fade"> 
<div class="modal-dialog"> 
    <div class="modal-content"> 
     <div class="modal-header"> 
      <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span> <span class="sr-only">close</span></button> 
      <h4 id="modalTitle" class="modal-title"></h4> 
     </div> 
     <div id="modalBody" class="modal-body"> </div> 
     <div class="modal-footer"> 
      <button type="button" class="btn btn-default" data-dismiss="modal">Close</button> 
     </div> 
    </div> 
</div> 
</div> 
    <!-- Modal --> 

덕분에 내 코드

<script> 

    $(function() { // document ready 

     $('#calendar').fullCalendar({ 
      now: '2017-12', 
      editable: true, // enable draggable events 
       height: 'auto', 
      header: { 
       left: 'today prev,next', 
       center: 'title', 
       right: 'timelineMonth,timelineYear' 
      }, 
      defaultView: 'timelineThreeDays', 
       navLinks: true, 
       resourceAreaWidth: '15%', 
      views: { 
       timelineThreeDays: { 
        type: 'timeline', 
        duration: { days: 31} 
       } 
      }, 
      resourceLabelText: 'Single Rooms (8)', 

      resources: [ 
       { id: 'a', title: 'Room # 1' }, 
       { id: 'b', title: 'Room # 2', eventColor: 'green' }, 
       { id: 'c', title: 'Room # 3', eventColor: 'orange' }, 
       { id: 'd', title: 'Room # 4', children: [ 

       ] }, 
       { id: 'e', title: 'Room # 5' }, 
       { id: 'f', title: 'Room # 6', eventColor: 'red' }, 
       { id: 'g', title: 'Room # 7', eventColor: 'orange' }, 
       { id: 'h', title: 'Room # 8',eventColor: 'green' }, 

      ], 
      events: [ 

       // normal events... 
       { id: '1', resourceId: 'a', start: '2017-12-01', end: '2017-12-07', title: 'Mahesh' }, 
       { id: '2', resourceId: 'b', start: '2017-12-12', end: '2017-12-15', title: 'Anushka' }, 
       { id: '3', resourceId: 'c', start: '2017-12-11', end: '2017-12-15', title: 'Ramesh' }, 
       { id: '4', resourceId: 'd', start: '2017-12-11', end: '2017-12-19', title: 'Susena' }, 
       { id: '5', resourceId: 'e', start: '2017-12-15', end: '2017-12-28', title: 'Lahiru' }, 
       { id: '6', resourceId: 'f', start: '2017-12-01', end: '2017-12-10', title: 'Chamath' }, 
       { id: '7', resourceId: 'g', start: '2017-12-10', end: '2017-12-11', title: 'Channa' }, 
       { id: '8', resourceId: 'h', start: '2017-12-09', end: '2017-12-14', title: 'Ganesh' } 
      ], 

eventClick: function(event, jsEvent, view) { 
      $('#modalTitle').html(event.title); 
      $('#modalBody').html(event.description); 
      $('#eventUrl').attr('href',event.url); 
      $('#calendarModal').modal(); 
     }, 
     }); 
    }); 

</script> 

입니다

eventClick: function(event, jsEvent, view) { 
      $('#modalTitle').html(event.title); 
      $('#modalBody').html(event.description); 
      $('#eventUrl').attr('href',event.url); 
      $('#calendarModal').modal(); 
     }, 

이벤트 기능

답변