Julian Lam 9 years ago
parent 9560ee3a14
commit 648e9c4dc8

@ -10,8 +10,13 @@ define('admin/appearance/skins', function() {
$('body').append(scriptEl);
$('#skins').on('click', function(e){
var target = $(e.target),
action = target.attr('data-action');
var target = $(e.target);
if (!target.attr('data-action')) {
target = target.parents('[data-action]');
}
var action = target.attr('data-action');
if (action && action === 'use') {
var parentEl = target.parents('[data-theme]'),
@ -19,6 +24,7 @@ define('admin/appearance/skins', function() {
cssSrc = parentEl.attr('data-css'),
themeId = parentEl.attr('data-theme');
socket.emit('admin.themes.set', {
type: themeType,
id: themeId,

Loading…
Cancel
Save