mirror of
https://gitlab.crans.org/bde/nk20
synced 2025-02-24 09:01:18 +00:00
Compare commits
1 Commits
61f509bad8
...
132ce51d17
Author | SHA1 | Date | |
---|---|---|---|
|
132ce51d17 |
@ -17,24 +17,4 @@ SPDX-License-Identifier: GPL-3.0-or-later
|
|||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script>
|
{% endblock %}
|
||||||
var date_end = document.getElementById("id_date_end");
|
|
||||||
var date_start = document.getElementById("id_date_start");
|
|
||||||
|
|
||||||
function update_date_end (){
|
|
||||||
if(date_end.value=="" || date_end.value<date_start.value){
|
|
||||||
date_end.value = date_start.value;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
function update_date_start (){
|
|
||||||
if(date_start.value=="" || date_end.value<date_start.value){
|
|
||||||
date_start.value = date_end.value;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
date_start.addEventListener('focusout', update_date_end);
|
|
||||||
date_end.addEventListener('focusout', update_date_start);
|
|
||||||
|
|
||||||
</script>
|
|
||||||
{% endblock %}
|
|
Loading…
x
Reference in New Issue
Block a user