Fix for Bug 4235, Date picker broken if placing multiple holds
Also includes minor style change. Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
This commit is contained in:
parent
9d44a624a3
commit
f1709ab663
1 changed files with 5 additions and 6 deletions
|
@ -304,7 +304,6 @@
|
|||
<!-- TMPL_IF NAME="reserve_in_future" -->
|
||||
<td>
|
||||
<input name="reserve_date_<!-- TMPL_VAR NAME="biblionumber" -->" id="reserve_date_<!-- TMPL_VAR NAME="biblionumber" -->" size="10">
|
||||
<!-- <img src="<!-- TMPL_VAR NAME="themelang" -->/lib/calendar/cal.gif" alt="Show Calendar" border="0" id="CalendarReserveDate<!-- TMPL_VAR NAME="biblionumber" -->" style="cursor: pointer;" /> -->
|
||||
<script language="JavaScript" type="text/javascript">
|
||||
//<![CDATA[
|
||||
$("#reserve_date_<!-- TMPL_VAR NAME="biblionumber" -->").attr( 'readonly', 'readonly' );
|
||||
|
@ -344,7 +343,7 @@
|
|||
<!-- /TMPL_IF -->
|
||||
<td>
|
||||
<input name="expiration_date_<!-- TMPL_VAR NAME="biblionumber" -->" id="expiration_date_<!-- TMPL_VAR NAME="biblionumber" -->" size="10" readonly="readonly" />
|
||||
<img src="<!-- TMPL_VAR NAME="themelang" -->/lib/calendar/cal.gif" alt="Show Calendar" border="0" id="CalendarExpirationDate" style="cursor: pointer;" />
|
||||
<img src="<!-- TMPL_VAR NAME="themelang" -->/lib/calendar/cal.gif" alt="Show Calendar" border="0" id="CalendarExpirationDate_<!-- TMPL_VAR NAME="biblionumber" -->" style="cursor: pointer;" />
|
||||
<script language="JavaScript" type="text/javascript">
|
||||
//<![CDATA[
|
||||
function validate1(date) {
|
||||
|
@ -362,15 +361,15 @@
|
|||
{
|
||||
inputField : "expiration_date_<!-- TMPL_VAR NAME="biblionumber" -->",
|
||||
ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
|
||||
button : "CalendarExpirationDate",
|
||||
button : "CalendarExpirationDate_<!-- TMPL_VAR NAME="biblionumber" -->",
|
||||
disableFunc : validate1,
|
||||
dateStatusFunc : validate1,
|
||||
}
|
||||
);
|
||||
//]]>
|
||||
</script>
|
||||
<br/>
|
||||
<a href='#' onclick="document.getElementById('expiration_date_<!-- TMPL_VAR NAME="biblionumber" -->').value='';">Clear Date</a>
|
||||
<p style="margin:.3em 2em;">
|
||||
<a href="#" style="font-size:85%;text-decoration:none;" onclick="document.getElementById('expiration_date_<!-- TMPL_VAR NAME="biblionumber" -->').value='';return false;">Clear Date</a></p>
|
||||
</td>
|
||||
|
||||
<!-- TMPL_IF NAME="OPACItemHolds" -->
|
||||
|
|
Loading…
Reference in a new issue