Merge branch '2800-python-global-state' into 2800-pgs
[arvados.git] / apps / workbench / app / assets / javascripts / application.js
index 2ad7ae5dad519037e88fcc03ffb76f5a9473f26b..c4cb68322f1454aac3220d8bfc0fba02a7246e86 100644 (file)
@@ -136,11 +136,13 @@ jQuery(function($){
         on('ajax:complete ready', function() {
             // See http://getbootstrap.com/javascript/#buttons
             $('.btn').button();
-        });
-
-    $(document).
+        }).
         on('ready ajax:complete', function() {
             $('[data-toggle~=tooltip]').tooltip({container:'body'});
+        }).
+        on('ready ajax:complete', function() {
+            // This makes the dialog close on Esc key, obviously.
+            $('.modal').attr('tabindex', '-1')
         });
 
     HeaderRowFixer = function(selector) {