Enter sumbits the prompt dialog
authorMike Rylander <mrylander@gmail.com>
Fri, 30 Jan 2015 18:47:18 +0000 (13:47 -0500)
committerMike Rylander <mrylander@gmail.com>
Mon, 23 Feb 2015 17:04:06 +0000 (12:04 -0500)
Signed-off-by: Mike Rylander <mrylander@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">