<script type="text/javascript">
function switchTo(str,subpage) {
+ console.debug('switchTo() page: ' + str + ' subpage: ' + subpage);
selfckResetTimer(); // reset login timer
+
var pages = [];
var sidebarLinks = [];
pages['step0'] = document.getElementById('step0');
}
pages[str].style.display="block";
if(str=='step3' && !subpage) pages['step3a'].style.display="block";
- try{dojo.byId('selfckScanBox').focus();dojo.byId('selfckScanBox').select();}catch(e){}
+
+ try {
+ // Re-focus scan box during navigation.
+ dojo.byId('selfckScanBox').focus();
+ dojo.byId('selfckScanBox').select();
+
+ // NOTE: switchTo() is called in the midst of various actions,
+ // so we can't clear the notifications here.
+ // dojo.byId('oils-selfck-status-div').innerHTML = '';
+ } catch(e) {}
}
</script>
</div>
<div class="col-md-12 pad-vert-btn">
- <a href="javascript:; id="back_button"" onclick="switchTo('step3');" class="btn btn-primary">
+ <a href="javascript:;" id="back_button"
+ onclick="switchTo('step3'); dojo.byId('oils-selfck-status-div').innerHTML = '';"
+ class="btn btn-primary">
<img alt='back to checkout' class="scko-btn-to-checkout" src="[% ctx.media_prefix %]/images/selfcheck/arrow.png"/>
<span>Back to Check-out</span></a>
</div>
SelfCheckManager.prototype.drawItemsOutPage = function() {
switchTo('step3','step3d');
+ dojo.byId('oils-selfck-status-div').innerHTML = ''; // reset notices
// Reset items checked out in case it changed
this.circSummary = undefined;
SelfCheckManager.prototype.drawHoldsPage = function() {
switchTo('step3','step3e');
+ dojo.byId('oils-selfck-status-div').innerHTML = ''; // reset notices
this.holdTbody = dojo.byId('oils-selfck-hold-tbody');
this.readyTbody = dojo.byId('oils-selfck-rdy-tbody');
// this.updateScanBox(...)
switchTo('step3','step3c');
+ dojo.byId('oils-selfck-status-div').innerHTML = ''; // reset notices
+
progressDialog.show(true);
this.finesTbody = dojo.byId('oils-selfck-fines-tbody');