Mercurial > kallithea
diff kallithea/templates/admin/auth/auth_settings.html @ 8253:f4e158ed49b1
js: cleanup to use nested named functions instead of vars with anonymous functions
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Thu, 09 Jan 2020 23:40:42 +0100 |
parents | fb9550946c26 |
children | d6efaa91e967 |
line wrap: on
line diff
--- a/kallithea/templates/admin/auth/auth_settings.html Sun Feb 16 02:47:09 2020 +0100 +++ b/kallithea/templates/admin/auth/auth_settings.html Thu Jan 09 23:40:42 2020 +0100 @@ -108,7 +108,7 @@ <script>'use strict'; $('.toggle-plugin').click(function(e){ var $auth_plugins_input = $('#auth_plugins'); - var notEmpty = function(element, index, array) { + function notEmpty(element, index, array) { return (element != ""); } var elems = $auth_plugins_input.val().split(',').filter(notEmpty);