Skip to content

Commit 2f8aed9

Browse files
committed
Fix bug where form action wasn't properly changed in test calendar
1 parent 5208356 commit 2f8aed9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dojo/templates/dojo/calendar.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@
3636
<script type="application/javascript" src="{% static "chosen/chosen.jquery.min.js" %}"></script>
3737
<script>
3838
$(function () {
39+
$('#caltype').change(function() { $('#calfilter').attr('action', '/calendar/' + $(this).val()); });
3940
$(".chosen-select").chosen({disable_search_threshold: 10});
40-
$('#caltype').val('{{ caltype }}');
41+
$('#caltype').val('{{ caltype }}'); $('#caltype').trigger('change');
4142
$('#lead').val([{% for lead in leads %} '{{ lead }}', {% endfor %}]);
4243
$('.chosen-select').trigger('chosen:updated');
43-
$('#caltype').change(function() { $('#calfilter').attr('action', '/calendar/' + $(this).val()); });
4444
$('#calendar').fullCalendar({
4545
header: {
4646
left: 'prev,next today',

0 commit comments

Comments
 (0)