Adding auto-submit to filter form.

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
Owen Leonard 2007-12-20 15:11:26 -06:00 committed by Joshua Ferraro
parent 39f2a3a169
commit df037ca4ce
2 changed files with 24 additions and 2 deletions

View File

@ -1,6 +1,16 @@
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
<title>Koha &rsaquo; Administration &rsaquo; Fines</title>
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
<script type="text/javascript">
//<![CDATA[
$(document).ready(function() {
$('#selectlibrary').find("input:submit").hide();
$('#branch').change(function() {
$('#selectlibrary').submit();
});
});
//]]>
</script>
</head>
<body>
<!-- TMPL_INCLUDE NAME="header.inc" -->
@ -29,7 +39,7 @@
<li>default branch, default category</li>
</ul>
</div>
<form method="post" action="/cgi-bin/koha/admin/finesrules.pl">
<form method="post" id="selectlibrary" action="/cgi-bin/koha/admin/finesrules.pl">
<label for="branch">Select a library :</label>
<select id="branch" name="branch">
<option value="">Default</option>

View File

@ -1,6 +1,18 @@
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
<title>Koha &rsaquo; Administration &rsaquo; Issuing Rules</title>
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
<script type="text/javascript">
//<![CDATA[
$(document).ready(function() {
$('#selectlibrary').find("input:submit").hide();
$('#branch').change(function() {
$('#selectlibrary').submit();
});
});
//]]>
</script>
</head>
<body>
<!-- TMPL_INCLUDE NAME="header.inc" -->
@ -28,7 +40,7 @@
<li>If a rule is filled for a given branch, it is used, otherwise, it's the rule of the "default" branch</li>
</ul>
</div>
<form method="post" action="/cgi-bin/koha/admin/issuingrules.pl">
<form method="post" id="selectlibrary" action="/cgi-bin/koha/admin/issuingrules.pl">
<label for="branch">Select a library :</label>
<select id="branch" name="branch">
<option value="">Default</option>