fixed BUGS 28/29 -> can now have empty year_published, fixed up limits to 1850-2100 now too and better error messages. Also auto-change when choose wishlist

This commit is contained in:
2023-06-13 18:53:03 +10:00
parent 9e4ee74775
commit ae2453d073
3 changed files with 48 additions and 11 deletions

View File

@@ -436,6 +436,7 @@ function AddAuthorToBook(num) {
function() { $('#author-{{cnt.idx}}').prop( 'style', '' ) } )
{% set cnt.idx = cnt.idx+1 %}
{% endfor %}
$('#owned').click( function() { if( $("#owned option:selected").text() == 'On Wish List' ) { $('#covertype').val( $('#covertype option:last').val() ); $('#condition').val( $('#condition option:last').val() ); $('#year_published').val(''); $('#rating').val( $('#rating option:last').val() ) } } )
} )
</script>
{% endblock script_content %}