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:
parent
5b4dd20305
commit
1b7b9a453a
1 changed files with 4 additions and 1 deletions
|
@ -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();
|
||||
});
|
||||
});
|
||||
//]]>
|
||||
|
|
Loading…
Reference in a new issue