fixing pills

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

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

@ -2,7 +2,7 @@
<hr /> <hr />
<div class="themes"> <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="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="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> <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> <h1><i class="fa fa-cogs"></i> Settings</h1>
<hr /> <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="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="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> <li data-pill="email"><a href="{relative_path}/admin/settings/email">Email</a></li>

Loading…
Cancel
Save