Unify modals
This commit is contained in:
+2
-2
@@ -142,11 +142,11 @@
|
||||
|
||||
function makeDropdown(triggerBtn, items) {
|
||||
var menu = document.createElement('div');
|
||||
menu.className = 'toolbar-dropdown-menu';
|
||||
menu.className = 'dropdown-menu';
|
||||
items.forEach(function (item) {
|
||||
var btn = document.createElement('button');
|
||||
btn.type = 'button';
|
||||
btn.className = 'btn btn-tool toolbar-dropdown-item';
|
||||
btn.className = 'btn btn-tool dropdown-item';
|
||||
btn.textContent = item.label;
|
||||
btn.addEventListener('mousedown', function (e) {
|
||||
e.preventDefault();
|
||||
|
||||
Reference in New Issue
Block a user