removed unnecessary switch case

v1.18.x
psychobunny 11 years ago
parent 8e4c23149c
commit b515995432

@ -21,9 +21,7 @@ define(['forum/admin/settings'], function(Settings) {
var target = $(e.target), var target = $(e.target),
action = target.attr('data-action'); action = target.attr('data-action');
if (action) { if (action && action === 'use') {
switch (action) {
case 'use':
var parentEl = target.parents('li'), var parentEl = target.parents('li'),
themeType = parentEl.attr('data-type'), themeType = parentEl.attr('data-type'),
cssSrc = parentEl.attr('data-css'), cssSrc = parentEl.attr('data-css'),
@ -47,8 +45,6 @@ define(['forum/admin/settings'], function(Settings) {
timeout: 3500 timeout: 3500
}); });
}); });
break;
}
} }
} }

Loading…
Cancel
Save