mirror of
https://github.com/abapGit/abapGit.git
synced 2025-05-01 04:08:27 +08:00
add more toolbars to CommandPalette (#5136)
This commit is contained in:
parent
6d02555f96
commit
9d0e19feb9
|
@ -2326,11 +2326,13 @@ function enumerateToolbarActions() {
|
|||
}
|
||||
}
|
||||
|
||||
var toolbarRoot = document.getElementById("toolbar-main");
|
||||
if (toolbarRoot && toolbarRoot.nodeName === "UL") processUL(toolbarRoot);
|
||||
toolbarRoot = document.getElementById("toolbar-repo");
|
||||
if (toolbarRoot && toolbarRoot.nodeName === "UL") processUL(toolbarRoot);
|
||||
// Add more toolbars ?
|
||||
[].slice.call(document.querySelectorAll("[id*=toolbar]"))
|
||||
.filter(function(toolbar){
|
||||
return (toolbar && toolbar.nodeName === "UL");
|
||||
}).forEach(function(toolbar){
|
||||
processUL(toolbar);
|
||||
});
|
||||
|
||||
if (items.length === 0) return;
|
||||
|
||||
items = items.map(function(item) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user