mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 23:15:48 +01:00
removed unnecessary switch case
This commit is contained in:
@@ -21,9 +21,7 @@ define(['forum/admin/settings'], function(Settings) {
|
||||
var target = $(e.target),
|
||||
action = target.attr('data-action');
|
||||
|
||||
if (action) {
|
||||
switch (action) {
|
||||
case 'use':
|
||||
if (action && action === 'use') {
|
||||
var parentEl = target.parents('li'),
|
||||
themeType = parentEl.attr('data-type'),
|
||||
cssSrc = parentEl.attr('data-css'),
|
||||
@@ -47,8 +45,6 @@ define(['forum/admin/settings'], function(Settings) {
|
||||
timeout: 3500
|
||||
});
|
||||
});
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user