summaryrefslogtreecommitdiffstats
path: root/public_html/data
diff options
context:
space:
mode:
Diffstat (limited to 'public_html/data')
-rw-r--r--public_html/data/js/application.js11
1 files changed, 10 insertions, 1 deletions
diff --git a/public_html/data/js/application.js b/public_html/data/js/application.js
index 50968fa41..674f68008 100644
--- a/public_html/data/js/application.js
+++ b/public_html/data/js/application.js
@@ -53,6 +53,7 @@ define(
this.setupLazyLoadingImages();
this.setupTableRangeSelect();
this.setupAsciinema();
+ this.focusLoginFormOnClick();
},
setupTableRangeSelect: function () {
@@ -109,7 +110,15 @@ define(
item = $(item);
asciinema.player.js.CreatePlayer(item.attr("id"), item.data("url"));
});
- }
+ },
+
+ focusLoginFormOnClick: function () {
+ $('.dropdown-toggle').on('click', function (e) {
+ setTimeout(function() {
+ $(e.target).parent().find(".dropdown-menu input.form-control").first().focus();
+ }, 0);
+ });
+ },
};
return App;