From c614b14cf09ce8733435afc0726c7e2e7dadc510 Mon Sep 17 00:00:00 2001 From: Markus Kahl Date: Thu, 17 Sep 2015 12:06:26 +0200 Subject: [PATCH] fixed auth source hide stuff --- app/assets/javascripts/admin_users.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/admin_users.js b/app/assets/javascripts/admin_users.js index 05b692371f..1b1feaaefe 100644 --- a/app/assets/javascripts/admin_users.js +++ b/app/assets/javascripts/admin_users.js @@ -67,5 +67,7 @@ jQuery('#user_auth_source_id').change(on_auth_source_change); }); - jQuery(document).ready(on_auth_source_change); + jQuery(document).ready(function() { + jQuery.proxy(on_auth_source_change, jQuery('#user_auth_source_id').get(0))(); + }); })();