theme selection buttons

v1.18.x
psychobunny 10 years ago
parent 88c466bf3f
commit 181bb9a6a7

@ -43,6 +43,10 @@
}
}
[data-theme].selected .mdl-button {
color: black;
}
[data-type="bootswatch"] {
.mdl-card__title {
height: 198px;

@ -63,8 +63,19 @@ define('admin/appearance/skins', function() {
};
function highlightSelectedTheme(themeId) {
$('.themes li[data-theme]').removeClass('selected').find('[data-action="use"]').html('Use Theme').removeClass('btn-success').addClass('btn-primary');
$('.themes li[data-theme="' + themeId + '"]').addClass('selected').find('[data-action="use"]').html('Current Theme').removeClass('btn-primary').addClass('btn-success');
$('[data-theme]')
.removeClass('selected')
.find('[data-action="use"]')
.html('Select Theme')
.removeClass('btn-success')
.addClass('btn-primary');
$('[data-theme="' + themeId + '"]')
.addClass('selected')
.find('[data-action="use"]')
.html('Current Theme')
.removeClass('btn-primary')
.addClass('btn-success');
}
return Skins;

@ -84,8 +84,19 @@ define('admin/appearance/themes', function() {
};
function highlightSelectedTheme(themeId) {
$('.themes li[data-theme]').removeClass('selected');
$('.themes li[data-theme="' + themeId + '"]').addClass('selected');
$('[data-theme]')
.removeClass('selected')
.find('[data-action="use"]')
.html('Select Theme')
.removeClass('btn-success')
.addClass('btn-primary');
$('[data-theme="' + themeId + '"]')
.addClass('selected')
.find('[data-action="use"]')
.html('Current Theme')
.removeClass('btn-primary')
.addClass('btn-success');
}
return Themes;

Loading…
Cancel
Save