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=d34fa398b8d875524808a8005aa19fe65e107822;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 ca72ec759c..3fbc501868 100644 --- a/Open-ILS/web/opac/skin/default/js/rdetail.js +++ b/Open-ILS/web/opac/skin/default/js/rdetail.js @@ -706,7 +706,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() {