forked from mirrors/easyappointments
Fix disabled bug with insert dropdown in backend.
This commit is contained in:
parent
80b53b2dd0
commit
779b291281
2 changed files with 3 additions and 3 deletions
|
@ -73,7 +73,7 @@
|
||||||
<span class="glyphicon glyphicon-plus"></span>
|
<span class="glyphicon glyphicon-plus"></span>
|
||||||
<?= lang('appointment') ?>
|
<?= lang('appointment') ?>
|
||||||
</button>
|
</button>
|
||||||
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
|
<button type="button" id="insert-dropdown" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
|
||||||
<span class="caret"></span>
|
<span class="caret"></span>
|
||||||
<span class="sr-only">Toggle Dropdown</span>
|
<span class="sr-only">Toggle Dropdown</span>
|
||||||
</button>
|
</button>
|
||||||
|
|
|
@ -224,11 +224,11 @@ window.BackendCalendarDefaultView = window.BackendCalendarDefaultView || {};
|
||||||
$('#select-filter-item').change(function () {
|
$('#select-filter-item').change(function () {
|
||||||
// If current value is service, then the sync buttons must be disabled.
|
// If current value is service, then the sync buttons must be disabled.
|
||||||
if ($('#select-filter-item option:selected').attr('type') === FILTER_TYPE_SERVICE) {
|
if ($('#select-filter-item option:selected').attr('type') === FILTER_TYPE_SERVICE) {
|
||||||
$('#google-sync, #enable-sync, #insert-appointment, #insert-unavailable').prop('disabled', true);
|
$('#google-sync, #enable-sync, #insert-appointment, #insert-dropdown').prop('disabled', true);
|
||||||
$('#calendar').fullCalendar('option', 'selectable', false);
|
$('#calendar').fullCalendar('option', 'selectable', false);
|
||||||
$('#calendar').fullCalendar('option', 'editable', false);
|
$('#calendar').fullCalendar('option', 'editable', false);
|
||||||
} else {
|
} else {
|
||||||
$('#google-sync, #enable-sync, #insert-appointment, #insert-unavailable').prop('disabled', false);
|
$('#google-sync, #enable-sync, #insert-appointment, #insert-dropdown').prop('disabled', false);
|
||||||
$('#calendar').fullCalendar('option', 'selectable', true);
|
$('#calendar').fullCalendar('option', 'selectable', true);
|
||||||
$('#calendar').fullCalendar('option', 'editable', true);
|
$('#calendar').fullCalendar('option', 'editable', true);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue