[open-ils-commits] r14052 - trunk/Open-ILS/xul/staff_client/server/circ (phasefx)
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Sep 18 13:30:07 EDT 2009
Author: phasefx
Date: 2009-09-18 13:30:03 -0400 (Fri, 18 Sep 2009)
New Revision: 14052
Modified:
trunk/Open-ILS/xul/staff_client/server/circ/checkin.js
trunk/Open-ILS/xul/staff_client/server/circ/checkin_overlay.xul
Log:
replace Checkin Effective Date textbox with datepicker for popup-calendar
Modified: trunk/Open-ILS/xul/staff_client/server/circ/checkin.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/circ/checkin.js 2009-09-18 17:26:23 UTC (rev 14051)
+++ trunk/Open-ILS/xul/staff_client/server/circ/checkin.js 2009-09-18 17:30:03 UTC (rev 14052)
@@ -183,15 +183,15 @@
['render'],
function(e) {
return function() {
- obj.controller.view.checkin_effective_date_textbox.value =
+ obj.controller.view.checkin_effective_datepicker.value =
util.date.formatted_date(new Date(),'%F');
};
}
],
- 'checkin_effective_date_textbox' : [
+ 'checkin_effective_datepicker' : [
['change'],
function(ev) {
- if (ev.target.nodeName == 'textbox') {
+ if (ev.target.nodeName == 'datepicker') {
try {
var flag = false;
var darray = ev.target.value.split('-');
@@ -296,7 +296,7 @@
if (barcode) {
if ( obj.test_barcode(barcode) ) { /* good */ } else { /* bad */ return; }
}
- var backdate = obj.controller.view.checkin_effective_date_textbox.value;
+ var backdate = obj.controller.view.checkin_effective_datepicker.value;
var auto_print = document.getElementById('checkin_auto');
if (auto_print) auto_print = auto_print.checked;
JSAN.use('circ.util');
Modified: trunk/Open-ILS/xul/staff_client/server/circ/checkin_overlay.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/circ/checkin_overlay.xul 2009-09-18 17:26:23 UTC (rev 14051)
+++ trunk/Open-ILS/xul/staff_client/server/circ/checkin_overlay.xul 2009-09-18 17:30:03 UTC (rev 14052)
@@ -72,8 +72,8 @@
<vbox>
<hbox>
<hbox id="checkin_effective_date_hbox">
- <label id="checkin_effective_date_label" value="&staff.circ.checkin_overlay.effective_date.label;" control="checkin_effective_date_textbox" accesskey="&staff.circ.checkin_overlay.effective_date.accesskey;"/>
- <textbox id="checkin_effective_date_textbox" context="clipboard"/>
+ <label id="checkin_effective_date_label" value="&staff.circ.checkin_overlay.effective_date.label;" control="checkin_effective_datepicker" accesskey="&staff.circ.checkin_overlay.effective_date.accesskey;"/>
+ <datepicker id="checkin_effective_datepicker" type="popup" context="clipboard"/>
</hbox>
<menubar>
<menu label="&staff.circ.checkin_overlay.actions.label;" accesskey="&staff.circ.checkin_overlay.actions.accesskey;">
More information about the open-ils-commits
mailing list