From 42340516657bebd25fa16f83bada92782cb3a914 Mon Sep 17 00:00:00 2001 From: Anton Sarukhanov <code@ant.sr> Date: Thu, 3 Nov 2016 20:48:05 -0400 Subject: [PATCH] 'Clicking twice is not user friendly' -Jinen --- theme/static/js/script.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/theme/static/js/script.js b/theme/static/js/script.js index 5e55055..7506110 100644 --- a/theme/static/js/script.js +++ b/theme/static/js/script.js @@ -65,7 +65,7 @@ } }); for (t in triggers) { - $(triggers[t]).change(function() { + $(triggers[t]).on("keyup", function() { var deps = $(this).data('dependents'); for (d in deps) { if ($(this).val()) { @@ -74,7 +74,6 @@ $(deps[d]).hide(); } } - $(deps[0]).focus(); }).change(); } })("form") -- GitLab