# HG changeset patch # User Andrew Shadura # Date 2016-05-28 15:11:48 # Node ID e2fb29be06811921bc0f56eea6526f65fb3a973a # Parent 24d5af8110270974e1b4904c97c863d0d3293bc8 templates: use a better class name for an enabled toggle button "btn-success" is rather a poor choice for a class applied when the button is active, "active" is better for that. A side effect of the change is that "Enabled" is now shown in bold. diff --git a/kallithea/templates/admin/auth/auth_settings.html b/kallithea/templates/admin/auth/auth_settings.html --- a/kallithea/templates/admin/auth/auth_settings.html +++ b/kallithea/templates/admin/auth/auth_settings.html @@ -36,7 +36,7 @@ %for plugin_path in c.available_plugins:
  • - + ${_('Enabled') if plugin_path in c.enabled_plugins else _('Disabled')}${plugin_path}
  • @@ -115,10 +115,10 @@ var $cur_button = $(e.currentTarget); var plugin_id = $cur_button.attr('plugin_id'); - if($cur_button.hasClass('btn-success')){ + if($cur_button.hasClass('active')){ elems.splice(elems.indexOf(plugin_id), 1); $auth_plugins_input.val(elems.join(',')); - $cur_button.removeClass('btn-success'); + $cur_button.removeClass('active'); $cur_button.html(_TM['Disabled']); } else{ @@ -126,7 +126,7 @@ elems.push(plugin_id); } $auth_plugins_input.val(elems.join(',')); - $cur_button.addClass('btn-success'); + $cur_button.addClass('active'); $cur_button.html(_TM['Enabled']); } });