Only insert divider in system menu if there are custom commands
This commit is contained in:
1 parent
71581c9c93
commit
d991eab87e
1 file changed
+3
-1
@@ -28,7 +28,9 @@ $(function() {
|
||||
action.actionSource = "core";
|
||||
actions.push(action);
|
||||
});
|
||||
actions.push({action: "divider"});
|
||||
if (response.custom && response.custom.length) {
|
||||
actions.push({action: "divider"});
|
||||
}
|
||||
}
|
||||
_.each(response.custom, function(data) {
|
||||
var action = _.extend({}, data);
|
||||
|
||||
Reference in new issue
Block a user