|
|
@ -230,21 +230,25 @@ $(document).ready(function() { |
|
|
|
delay: 2000 |
|
|
|
delay: 2000 |
|
|
|
}, |
|
|
|
}, |
|
|
|
content: event.attachment, |
|
|
|
content: event.attachment, |
|
|
|
position: { at:'top right' , my:'bottom right'}, |
|
|
|
position: { at:'top right' , my:'bottom right'} |
|
|
|
}).removeData('qtip'); // this is an special hack to add multiple qtip in the same target |
|
|
|
}).removeData('qtip'); // this is an special hack to add multiple qtip in the same target |
|
|
|
} |
|
|
|
} |
|
|
|
if (event.description) { |
|
|
|
if (event.description) { |
|
|
|
|
|
|
|
var comment = ''; |
|
|
|
|
|
|
|
if (event.comment) { |
|
|
|
|
|
|
|
comment = event.comment; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
element.qtip({ |
|
|
|
element.qtip({ |
|
|
|
hide: { |
|
|
|
hide: { |
|
|
|
delay: 2000 |
|
|
|
delay: 2000 |
|
|
|
}, |
|
|
|
}, |
|
|
|
content: event.description, |
|
|
|
content: event.description + ' ' + comment, |
|
|
|
position: { at:'top left' , my:'bottom left'} |
|
|
|
position: { at:'top left' , my:'bottom left'} |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
eventClick: function(calEvent, jsEvent, view) { |
|
|
|
eventClick: function(calEvent, jsEvent, view) { |
|
|
|
//var start_date = Math.round(calEvent.start.getTime() / 1000); |
|
|
|
|
|
|
|
var start_date = $.datepicker.formatDate("yy-mm-dd", calEvent.start) + " " + calEvent.start.toTimeString().substr(0, 8); |
|
|
|
var start_date = $.datepicker.formatDate("yy-mm-dd", calEvent.start) + " " + calEvent.start.toTimeString().substr(0, 8); |
|
|
|
|
|
|
|
|
|
|
|
if (calEvent.allDay == 1) { |
|
|
|
if (calEvent.allDay == 1) { |
|
|
@ -293,14 +297,21 @@ $(document).ready(function() { |
|
|
|
if ($("#content").parent().find('#content_edit').length == 0) { |
|
|
|
if ($("#content").parent().find('#content_edit').length == 0) { |
|
|
|
$("#content").parent().append('<div id="content_edit"></div>'); |
|
|
|
$("#content").parent().append('<div id="content_edit"></div>'); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
$("#content_edit").html(calEvent.description); |
|
|
|
$("#content_edit").html(calEvent.description); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ($("#comment").parent().find('#comment_edit').length == 0) { |
|
|
|
|
|
|
|
$("#comment").parent().append('<div id="comment_edit"></div>'); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("#comment_edit").html(calEvent.comment); |
|
|
|
|
|
|
|
|
|
|
|
$("#title_edit").show(); |
|
|
|
$("#title_edit").show(); |
|
|
|
$("#content_edit").show(); |
|
|
|
$("#content_edit").show(); |
|
|
|
|
|
|
|
$("#comment_edit").show(); |
|
|
|
|
|
|
|
|
|
|
|
$("#title").hide(); |
|
|
|
$("#title").hide(); |
|
|
|
$("#content").hide(); |
|
|
|
$("#content").hide(); |
|
|
|
|
|
|
|
$("#comment").hide(); |
|
|
|
|
|
|
|
|
|
|
|
allFields.removeClass( "ui-state-error" ); |
|
|
|
allFields.removeClass( "ui-state-error" ); |
|
|
|
|
|
|
|
|
|
|
@ -332,12 +343,11 @@ $(document).ready(function() { |
|
|
|
$.ajax({ |
|
|
|
$.ajax({ |
|
|
|
url: url+'&'+params, |
|
|
|
url: url+'&'+params, |
|
|
|
success:function() { |
|
|
|
success:function() { |
|
|
|
calEvent.title = $("#title").val(); |
|
|
|
calEvent.title = $("#title").val(); |
|
|
|
calEvent.start = calEvent.start; |
|
|
|
calEvent.start = calEvent.start; |
|
|
|
calEvent.end = calEvent.end; |
|
|
|
calEvent.end = calEvent.end; |
|
|
|
calEvent.allDay = calEvent.allDay; |
|
|
|
calEvent.allDay = calEvent.allDay; |
|
|
|
calEvent.description = $("#content").val(); |
|
|
|
calEvent.description = $("#content").val(); |
|
|
|
|
|
|
|
|
|
|
|
calendar.fullCalendar('updateEvent', |
|
|
|
calendar.fullCalendar('updateEvent', |
|
|
|
calEvent, |
|
|
|
calEvent, |
|
|
|
true // make the event "stick" |
|
|
|
true // make the event "stick" |
|
|
@ -374,7 +384,7 @@ $(document).ready(function() { |
|
|
|
url: delete_url, |
|
|
|
url: delete_url, |
|
|
|
success:function() { |
|
|
|
success:function() { |
|
|
|
calendar.fullCalendar('removeEvents', |
|
|
|
calendar.fullCalendar('removeEvents', |
|
|
|
calEvent |
|
|
|
calEvent |
|
|
|
); |
|
|
|
); |
|
|
|
calendar.fullCalendar("refetchEvents"); |
|
|
|
calendar.fullCalendar("refetchEvents"); |
|
|
|
calendar.fullCalendar("rerenderEvents"); |
|
|
|
calendar.fullCalendar("rerenderEvents"); |
|
|
@ -395,7 +405,7 @@ $(document).ready(function() { |
|
|
|
url: delete_url+'&delete_all_events=1', |
|
|
|
url: delete_url+'&delete_all_events=1', |
|
|
|
success:function() { |
|
|
|
success:function() { |
|
|
|
calendar.fullCalendar('removeEvents', |
|
|
|
calendar.fullCalendar('removeEvents', |
|
|
|
calEvent |
|
|
|
calEvent |
|
|
|
); |
|
|
|
); |
|
|
|
calendar.fullCalendar("refetchEvents"); |
|
|
|
calendar.fullCalendar("refetchEvents"); |
|
|
|
calendar.fullCalendar("rerenderEvents"); |
|
|
|
calendar.fullCalendar("rerenderEvents"); |
|
|
@ -450,13 +460,14 @@ $(document).ready(function() { |
|
|
|
|
|
|
|
|
|
|
|
$("#simple_title").html(calEvent.title); |
|
|
|
$("#simple_title").html(calEvent.title); |
|
|
|
$("#simple_content").html(calEvent.description); |
|
|
|
$("#simple_content").html(calEvent.description); |
|
|
|
|
|
|
|
$("#simple_comment").html(calEvent.comment); |
|
|
|
|
|
|
|
|
|
|
|
$("#simple-dialog-form").dialog("open"); |
|
|
|
$("#simple-dialog-form").dialog("open"); |
|
|
|
$("#simple-dialog-form").dialog({ |
|
|
|
$("#simple-dialog-form").dialog({ |
|
|
|
buttons: { |
|
|
|
buttons: { |
|
|
|
'{{"ExportiCalConfidential"|get_lang}}' : function() { |
|
|
|
'{{"ExportiCalConfidential"|get_lang}}' : function() { |
|
|
|
url = "ical_export.php?id=" + calEvent.id+'&course_id='+calEvent.course_id+"&class=confidential"; |
|
|
|
url = "ical_export.php?id=" + calEvent.id+'&course_id='+calEvent.course_id+"&class=confidential"; |
|
|
|
window.location.href = url; |
|
|
|
window.location.href = url; |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
'{{"ExportiCalPrivate"|get_lang}}': function() { |
|
|
|
'{{"ExportiCalPrivate"|get_lang}}': function() { |
|
|
|
url = "ical_export.php?id=" + calEvent.id+'&course_id='+calEvent.course_id+"&class=private"; |
|
|
|
url = "ical_export.php?id=" + calEvent.id+'&course_id='+calEvent.course_id+"&class=private"; |
|
|
@ -528,6 +539,17 @@ $(document).ready(function() { |
|
|
|
<div id="simple_content"></div> |
|
|
|
<div id="simple_content"></div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
{% if allow_agenda_event_comment %} |
|
|
|
|
|
|
|
<div class="control-group"> |
|
|
|
|
|
|
|
<label class="control-label"> |
|
|
|
|
|
|
|
<b>{{ "Comment" |get_lang}}</b> |
|
|
|
|
|
|
|
</label> |
|
|
|
|
|
|
|
<div class="controls"> |
|
|
|
|
|
|
|
<div id="simple_comment"></div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
|
|
</form> |
|
|
|
</form> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -538,6 +560,6 @@ $(document).ready(function() { |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div id="loading" style="margin-left:150px;position:absolute;display:none"> |
|
|
|
<div id="loading" style="margin-left:150px;position:absolute;display:none"> |
|
|
|
{{ "Loading"|get_lang }}... |
|
|
|
{{ "Loading" | get_lang }}... |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div id="calendar"></div> |
|
|
|
<div id="calendar"></div> |
|
|
|