Field loses value from JS function if I click outside the field with mouse
<pre><code>$(document).ready(function(){
    $('#id_laufzeit_bis').datepicker().on('changeDate', recalculate_deadline);
    $('#id_kuendigungsfrist').change(recalculate_deadline);
    $('#id_kuendigungsfrist_type').change(recalculate_deadline);

    $('#id_kuendigung_moeglichbis').change(check_reminder_date);
    $('#id_erinnerung_am').datepicker().one('hide', check_reminder_date);
});
</code></pre>

<p>THIS:</p>

<pre><code>$('#id_erinnerung_am').datepicker().one('hide', check_reminder_date);
</code></pre>

<p>loses value from <code>check_reminder_date</code> function and set default value of datepicker - Today's date(after If however I click outside the field with my mouse). How to fix it?</p>
