[open-ils-commits] r14965 - in trunk/Open-ILS/web: css/skin/default js/ui/default/circ/selfcheck templates/default/circ/selfcheck (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Nov 18 22:34:34 EST 2009
Author: erickson
Date: 2009-11-18 22:34:32 -0500 (Wed, 18 Nov 2009)
New Revision: 14965
Modified:
trunk/Open-ILS/web/css/skin/default/selfcheck.css
trunk/Open-ILS/web/js/ui/default/circ/selfcheck/selfcheck.js
trunk/Open-ILS/web/templates/default/circ/selfcheck/main.tt2
trunk/Open-ILS/web/templates/default/circ/selfcheck/summary.tt2
Log:
initial inline status text, some cleanup
Modified: trunk/Open-ILS/web/css/skin/default/selfcheck.css
===================================================================
--- trunk/Open-ILS/web/css/skin/default/selfcheck.css 2009-11-19 02:36:06 UTC (rev 14964)
+++ trunk/Open-ILS/web/css/skin/default/selfcheck.css 2009-11-19 03:34:32 UTC (rev 14965)
@@ -48,7 +48,7 @@
.oils-selfck-item-table td {
text-align: left;
- padding: 10px;
+ padding: 7px;
}
.oils-selfck-item-table thead {
@@ -59,11 +59,7 @@
border-bottom: 1px solid #888;
}
-.oils-selfck-item-table tbody td {
- padding:10px;
-}
-
#oils-selfck-content-div {
width: 70%;
position: float;
@@ -106,4 +102,12 @@
padding: 3px;
}
+#oils-selfck-status-div {
+ height: 20px;
+ padding: 10px;
+ font-weight: bold;
+ vertical-align: middle;
+ color: red;
+}
+
Modified: trunk/Open-ILS/web/js/ui/default/circ/selfcheck/selfcheck.js
===================================================================
--- trunk/Open-ILS/web/js/ui/default/circ/selfcheck/selfcheck.js 2009-11-19 02:36:06 UTC (rev 14964)
+++ trunk/Open-ILS/web/js/ui/default/circ/selfcheck/selfcheck.js 2009-11-19 03:34:32 UTC (rev 14965)
@@ -207,7 +207,11 @@
*/
SelfCheckManager.prototype.updateScanBox = function(args) {
- selfckScanBox.attr('value', '');
+ if(args.select) {
+ selfckScanBox.domNode.select();
+ } else {
+ selfckScanBox.attr('value', '');
+ }
if(args.value)
selfckScanBox.attr('value', args.value);
@@ -372,18 +376,23 @@
var self = this;
fieldmapper.standardRequest( // fetch the hold IDs
+
['open-ils.circ', 'open-ils.circ.holds.id_list.retrieve'],
{ async : true,
params : [this.authtoken, this.patron.id()],
oncomplete : function(r) {
var ids = openils.Util.readResponse(r);
- if(!ids || ids.length == 0) return;
+ if(!ids || ids.length == 0) {
+ progressDialog.hide();
+ return;
+ }
fieldmapper.standardRequest( // fetch the hold objects with fleshed details
['open-ils.circ', 'open-ils.circ.hold.details.batch.retrieve.atomic'],
{ async : true,
params : [self.authtoken, ids],
+
oncomplete : function(rr) {
self.drawHolds(openils.Util.readResponse(rr));
}
@@ -497,8 +506,12 @@
break;
case 'NO_SESSION':
- // TODO logout staff
+ // TODO logout staff?
break;
+
+ default:
+ dojo.byId('oils-selfck-status-div').innerHTML = evt.textcode;
+ this.updateScanBox({select:true});
}
}
Modified: trunk/Open-ILS/web/templates/default/circ/selfcheck/main.tt2
===================================================================
--- trunk/Open-ILS/web/templates/default/circ/selfcheck/main.tt2 2009-11-19 02:36:06 UTC (rev 14964)
+++ trunk/Open-ILS/web/templates/default/circ/selfcheck/main.tt2 2009-11-19 03:34:32 UTC (rev 14965)
@@ -12,6 +12,7 @@
<div id='oils-selfck-scan-text'></div>
<input jsId='selfckScanBox' dojoType='dijit.form.TextBox'></input>
</div>
+ <div id='oils-selfck-status-div'></div>
</div>
<div id='oils-selfck-bottom-div'>
<div id='oils-selfck-content-div'>
Modified: trunk/Open-ILS/web/templates/default/circ/selfcheck/summary.tt2
===================================================================
--- trunk/Open-ILS/web/templates/default/circ/selfcheck/summary.tt2 2009-11-19 02:36:06 UTC (rev 14964)
+++ trunk/Open-ILS/web/templates/default/circ/selfcheck/summary.tt2 2009-11-19 03:34:32 UTC (rev 14965)
@@ -1,8 +1,8 @@
<div id='oils-selfck-circ-info-div'>
<div id='oils-selfck-info-nav'>
<span><a id='oils-selfck-nav-home' href='javascript:void(0);' class='selected'>Home</a></span>
- <span><a id='oils-selfck-nav-holds' href='javascript:void(0);'>My Holds</a></span>
- <span><a id='oils-selfck-nav-fines' href='javascript:void(0);'>Pay Fines</a></span>
+ <span><a id='oils-selfck-nav-holds' href='javascript:void(0);'>Holds</a></span>
+ <span><a id='oils-selfck-nav-fines' href='javascript:void(0);'>Fines</a></span>
<span><a id='oils-selfck-nav-logout' href='javascript:void(0);'>Log Out</a></span>
</div>
<fieldset>
More information about the open-ils-commits
mailing list