fix for staying on current view.
This commit is contained in:
parent
ec9d84fc91
commit
3adbbf4163
1 changed files with 23 additions and 26 deletions
|
@ -25,12 +25,10 @@ function viewDisplay( view ) {
|
|||
|
||||
if(view.name === 'agendaDay' || view.name === 'agendaWeek') {
|
||||
|
||||
var select = $('.schedule_change_slots');
|
||||
$('.schedule_change_slots').remove();
|
||||
var calendarEl = this;
|
||||
|
||||
if(select.length === 0) {
|
||||
|
||||
select = $('<select class="schedule_change_slots"/>')
|
||||
var select = $('<select class="schedule_change_slots"/>')
|
||||
.append('<option value="5">5 min</option>')
|
||||
.append('<option value="10">10 min</option>')
|
||||
.append('<option value="15">15 min</option>')
|
||||
|
@ -55,7 +53,6 @@ function viewDisplay( view ) {
|
|||
var slotMin = view.calendar.options.slotMinutes;
|
||||
$('.schedule_change_slots option[value="'+slotMin+'"]').attr('selected', 'selected');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function eventRender(event, element, view) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue