LP#1402797 Enter sumbits the prompt dialog
authorMike Rylander <mrylander@gmail.com>
Fri, 30 Jan 2015 18:47:18 +0000 (13:47 -0500)
committerBill Erickson <berickxx@gmail.com>
Wed, 25 Feb 2015 16:16:06 +0000 (11:16 -0500)
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/templates/staff/share/t_prompt_dialog.tt2

index ce19832..9581bcc 100644 (file)
@@ -9,7 +9,7 @@
   </div>
   <div class="modal-body">
     <div class="col-md-12">
-      <input type='text' ng-model="args.value" class="form-control" focus-me="focus"/>
+      <input ng-keyup="$event.keyCode == 13 ? ok() : null" type='text' ng-model="args.value" class="form-control" focus-me="focus"/>
     </div>
   </div>
   <div class="modal-footer">