freescout-Themes-Module-main/Public/js/module.js
2024-01-23 18:22:29 +09:00

7 lines
No EOL
273 B
JavaScript

$('.theme-colours a').click(function(e) {
$("input[name='settings[themes.theme]']").val($(this).attr('data-colour'));
$("#colour-label").html($(this).attr('data-colour'));
$('.theme-colours a').removeClass('active');
$(this).addClass('active');
e.preventDefault();
});