For the keyboard jockeys out there - if the enter key doesn't submit,
the UI reviewer will not commit.
Signed-off-by: Dan Scott <dscott@laurentian.ca>
* 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() {