Bug 9302: Make the patron search show/hide more links work
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
a72911d701
commit
ed3ee3c89b
1 changed files with 20 additions and 15 deletions
|
@ -1,25 +1,12 @@
|
|||
[% USE Asset %]
|
||||
[% USE Branches %]
|
||||
[% USE Categories %]
|
||||
[% USE KohaDates %]
|
||||
[% SET footerjs = 1 %]
|
||||
[% INCLUDE 'doc-head-open.inc' %]
|
||||
<title>Koha › Patrons › Merge patron records</title>
|
||||
[% INCLUDE 'doc-head-close.inc' %]
|
||||
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
$(document).ready(function() {
|
||||
$('#merge-patrons').prop('disabled', true);
|
||||
$('#patron-merge-table').on('change', 'input', function() {
|
||||
if ( $('.keeper:checked').length > 0 ) {
|
||||
$('#merge-patrons').prop('disabled', false);
|
||||
} else {
|
||||
$('#merge-patrons').prop('disabled', true);
|
||||
}
|
||||
});
|
||||
});
|
||||
//]]>
|
||||
</script>
|
||||
|
||||
</head>
|
||||
<body id="pat_merge" class="pat">
|
||||
[% INCLUDE 'header.inc' %]
|
||||
|
@ -133,4 +120,22 @@ $(document).ready(function() {
|
|||
[% END %]
|
||||
</div>
|
||||
</div>
|
||||
|
||||
[% MACRO jsinclude BLOCK %]
|
||||
[% Asset.js("js/members-menu.js") %]
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$('#merge-patrons').prop('disabled', true);
|
||||
$('#patron-merge-table').on('change', 'input', function() {
|
||||
if ( $('.keeper:checked').length > 0 ) {
|
||||
$('#merge-patrons').prop('disabled', false);
|
||||
} else {
|
||||
$('#merge-patrons').prop('disabled', true);
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
[% END %]
|
||||
|
||||
[% INCLUDE 'intranet-bottom.inc' %]
|
||||
|
|
Loading…
Reference in a new issue