My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 1550: Editable is not working
1 person starred this issue and may be notified of changes. Back to list
Status:  Invalid
Owner:  ----
Closed:  Aug 2013


Sign in to add a comment
 
Reported by vivek.gu...@gmail.com, Sep 25, 2012
Here is my code and dragging an event is not working.

(function($){
  var l = window.location;
  var base_url = l.protocol + "//" + l.host + "/" + l.pathname.split('/')[1];
  var date = new Date();
		var d = date.getDate();
		var m = date.getMonth();
		var y = date.getFullYear();
    var path = base_url+"/mt_company/my_appointmet/addform/";
    var title = "";
    var customer_id = 0;
    var calendar = $('#calendar').fullCalendar({
			header: {
				left: 'prev,next today',
				center: 'title',
				right: 'month,agendaWeek,agendaDay'
			},
      dayClick: function(date, allDay, jsEvent, view) {
        if (allDay) {
          $('#calendar').fullCalendar('changeView', 'agendaDay'/* or 'basicDay' */)
            .fullCalendar('gotoDate',date.getFullYear(), date.getMonth(), date.getDate());
        }
      },
			selectable: true,
			selectHelper: true,
      select: function(start, end, allDay) {
        if(!allDay){
          if($('#edit-resource').val() == 0){
            alert("Please select any resource");
          }
          else{
            var title = prompt('Event Title:');
            var customer = prompt('Customer name');
            $('#loading').show().attr('style','background-color: grey;border: 1px solid red;display: block;font-size: 30px;height: 360px;position: absolute;right: 302px;text-align: center;top: 325px;width: 484px;z-index: 3;');
            $.ajax({
              type: 'post',
              url: path+start+'/'+end+'/'+$('#edit-resource').val()+'/'+title+'/'+customer,
              success: function(data1) {
                //console.log(data1);
                calendar.fullCalendar('renderEvent',
      						{
      							title: title,
      							start: start,
      							end: end,
      							allDay: allDay
      						},
      						true // make the event "stick"
      					);
                $('#loading').attr('style','z-index: -3;display:none;');
              }
            });  
          }
        }
       	calendar.fullCalendar('unselect');
			},
      eventRender: function(event, element) {
        element.bind('dblclick', function() {
           alert('double click!');
        });
     },
     loading: function(bool) {
				if (bool) $('#loading').show();
				else $('#loading').hide();
			},
      editable: true,
      disableResizing: false,
      droppable: true,
			events: [
				{
					title: 'All Day Event',
					start: new Date(y, m, 1)
				},
				{
					title: 'Long Event',
					start: new Date(y, m, d-5),
					end: new Date(y, m, d-2)
				},
				{
					id: 999,
					title: 'Repeating Event',
					start: new Date(y, m, d-3, 16, 0),
					allDay: false
				},
				{
					id: 999,
					title: 'Repeating Event',
					start: new Date(y, m, d+4, 16, 0),
					allDay: false
				},
				{
					title: 'Meeting',
					start: new Date(y, m, d, 10, 30),
					allDay: false
				},
				{
					title: 'Lunch',
					start: new Date(y, m, d, 12, 0),
					end: new Date(y, m, d, 14, 0),
					allDay: false
				},
				{
					title: 'Birthday Party',
					start: new Date(y, m, d+1, 19, 0),
					end: new Date(y, m, d+1, 22, 30),
					allDay: false
				},
				{
					title: 'Click for Google',
					start: new Date(y, m, 28),
					end: new Date(y, m, 29),
					url: 'http://google.com/'
				}
			]
		});
})(jQuery);


Aug 18, 2013
Project Member #1 adamrs...@gmail.com
(No comment was entered for this change.)
Status: ReproTemp
Aug 25, 2013
Project Member #2 adamrs...@gmail.com
This message is being bulk-sent to a number of issues, both [very] old and new.

I have been working on taming this issue tracker, which has gotten out of control after months of neglect. You are receiving this message because I could not successfully reproduce the bug you were reporting with a reasonable amount of effort. I have written some new bug-report guidelines to be used by all bug reports going forward:

    http://arshaw.com/fullcalendar/wiki/Report-a-Bug/

Its salient point is that all bug reports should have an isolated demonstration, viewable online with a tool like JSFiddle.

If the bug you originally reported is still important to you, could you please first try the latest version of FullCalendar and see if it is fixed? If not, could you please file a NEW bug report that follows the new guidelines? This issue will not be monitored for further comments.

I'm sorry I have taken so long to respond to many of your request, and I'm sorry if this new procedure causes extra work for you. Going forward, the issue tracker will be much more of a well-oiled machine.

Again, if you must, PLEASE SUBMIT A *NEW* BUG REPORT (following the new guidelines) INSTEAD OF COMMENTING ON THIS ONE. Further comments on this report will be ignored. Thanks.
Status: Invalid
Labels: Type-Bug
Sign in to add a comment

Powered by Google Project Hosting