fixing pills

v1.18.x
psychobunny 10 years ago
parent b468404506
commit 62312638ed

@ -28,11 +28,11 @@ define('forum/admin/footer', ['forum/admin/settings'], function(Settings) {
});
function setupPills() {
$('.nav-pills li').removeClass('active');
$('.navigation.nav-pills li').removeClass('active');
var slug = window.location.href.split('/');
slug = slug[slug.length-1];
$('.nav-pills [data-pill="' + slug + '"]').addClass('active');
$('.navigation.nav-pills [data-pill="' + slug + '"]').addClass('active');
}
function setupACPSearch() {

@ -2,7 +2,7 @@
<hr />
<div class="themes">
<ul class="nav nav-pills">
<ul class="navigation nav nav-pills">
<li data-pill="themes"><a href="{relative_path}/admin/appearance/themes">Themes</a></li>
<li data-pill="skins"><a href="{relative_path}/admin/appearance/skins">Skins</a></li>
<li data-pill="customise"><a href="{relative_path}/admin/appearance/customise">Customise</a></li>

@ -1,7 +1,7 @@
<h1><i class="fa fa-cogs"></i> Settings</h1>
<hr />
<ul class="nav nav-pills settings">
<ul class="navigation nav nav-pills settings">
<li data-pill="general"><a href="{relative_path}/admin/settings/general">General</a></li>
<li data-pill="reputation"><a href="{relative_path}/admin/settings/reputation">Reputation</a></li>
<li data-pill="email"><a href="{relative_path}/admin/settings/email">Email</a></li>

Loading…
Cancel
Save