[open-ils-commits] r10449 -
branches/rel_1_2_3/Open-ILS/web/opac/extras/selfcheck
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Aug 26 10:36:52 EDT 2008
Author: erickson
Date: 2008-08-26 10:36:50 -0400 (Tue, 26 Aug 2008)
New Revision: 10449
Modified:
branches/rel_1_2_3/Open-ILS/web/opac/extras/selfcheck/selfcheck.js
branches/rel_1_2_3/Open-ILS/web/opac/extras/selfcheck/selfcheck.xml
Log:
show newest checkouts first in the items out lists
Modified: branches/rel_1_2_3/Open-ILS/web/opac/extras/selfcheck/selfcheck.js
===================================================================
--- branches/rel_1_2_3/Open-ILS/web/opac/extras/selfcheck/selfcheck.js 2008-08-25 22:42:21 UTC (rev 10448)
+++ branches/rel_1_2_3/Open-ILS/web/opac/extras/selfcheck/selfcheck.js 2008-08-26 14:36:50 UTC (rev 10449)
@@ -343,7 +343,8 @@
unHideMe($n(template, 'selfck.cotype_rn'));
}
- $('selfck-items-out-tbody').appendChild(template);
+ var tbody = $('selfck-items-out-tbody');
+ tbody.insertBefore(template, tbody.getElementsByTagName('tr')[0]);
$('selfck-item-barcode-input').value = '';
@@ -352,7 +353,7 @@
$n(ptemplate, 'title').appendChild(text(record.title()));
$n(ptemplate, 'barcode').appendChild(text(copy.barcode()));
$n(ptemplate, 'due_date').appendChild(text(circ.due_date().replace(/T.*/,'')));
- printWrapper.appendChild(ptemplate);
+ printWrapper.insertBefore(ptemplate, printWrapper.getElementsByTagName('li')[0]);
pendingXact = false;
}
Modified: branches/rel_1_2_3/Open-ILS/web/opac/extras/selfcheck/selfcheck.xml
===================================================================
--- branches/rel_1_2_3/Open-ILS/web/opac/extras/selfcheck/selfcheck.xml 2008-08-25 22:42:21 UTC (rev 10448)
+++ branches/rel_1_2_3/Open-ILS/web/opac/extras/selfcheck/selfcheck.xml 2008-08-26 14:36:50 UTC (rev 10449)
@@ -140,6 +140,7 @@
<span name='selfck.cotype_rn' class='hide_me'>&selfck.cotype_rn;</span>
</td>
</tr>
+ <tr class='hide_me'> </tr>
</tbody>
</table>
<div id='selfck-items-out-done-div'>
@@ -175,6 +176,7 @@
&selfck.barcode;: <span name='barcode'/>
&selfck.due_date;: <span name='due_date'/>
</li>
+ <li class='hide_me'> </li>
</ol>
</div>
<br/>
More information about the open-ils-commits
mailing list