From: Dan Scott Date: Fri, 30 Sep 2011 03:27:19 +0000 (-0400) Subject: LP740320: Make submit the new bookbag dialog X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=8190509f88c61870ed151b10bccb9d2c635f5371;p=evergreen%2Fequinox.git LP740320: Make submit the new bookbag dialog For the keyboard jockeys out there - if the enter key doesn't submit, the UI reviewer will not commit. Signed-off-by: Dan Scott --- diff --git a/Open-ILS/web/opac/skin/default/js/rdetail.js b/Open-ILS/web/opac/skin/default/js/rdetail.js index 73efab2889..663950baa3 100644 --- a/Open-ILS/web/opac/skin/default/js/rdetail.js +++ b/Open-ILS/web/opac/skin/default/js/rdetail.js @@ -600,7 +600,12 @@ function finishBookbag(exitstatus) { * Creates a new Bookbag for the user. */ function rdetailNewBookbag() { - newBBDialog.show(); // Show the bookbag dialog. + newBBDialog.show(); // Show the bookbag dialog. + dojo.connect(dijit.byId('newBBDialog'), 'onKeyPress', function(evt) { + if (evt.keyCode == dojo.keys.ENTER) { + finishBookbag(0); + } + }); } function rdetailAddToBookbag() {