From d34fa398b8d875524808a8005aa19fe65e107822 Mon Sep 17 00:00:00 2001 From: Dan Scott Date: Thu, 29 Sep 2011 23:27:19 -0400 Subject: [PATCH] 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 --- Open-ILS/web/opac/skin/default/js/rdetail.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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() { -- 2.11.0