Bug 15965: Select default value ('biblio') if needed

It will prevent wrong value to be selected when the back button of the
browser is used.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>
This commit is contained in:
Jonathan Druart 2016-03-07 10:05:36 +00:00 committed by Brendan A Gallagher
parent 5b4dd20305
commit 1b7b9a453a

View file

@ -7,8 +7,11 @@
<script type="text/javascript">
//<![CDATA[
$(document).ready(function() {
[% IF tablename.default == 'biblio' %]
$("#tablename option:first").attr('selected','selected');
[% END %]
$('#tablename').change(function() {
$('#koha2marc').submit();
$('#koha2marc').submit();
});
});
//]]>