mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-09 07:25:46 +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),
|
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;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user