mirror of
https://github.com/BookStackApp/BookStack.git
synced 2026-01-03 23:42:28 +03:00
Allowed button-based multi-file uploads
Likely something that worked via dropzone before. This adds support for our custom dropzone file handling. Related to #4241
This commit is contained in:
@@ -10,7 +10,11 @@ export function elem(tagName, attrs = {}, children = []) {
|
||||
const el = document.createElement(tagName);
|
||||
|
||||
for (const [key, val] of Object.entries(attrs)) {
|
||||
el.setAttribute(key, val);
|
||||
if (val === null) {
|
||||
el.removeAttribute(key);
|
||||
} else {
|
||||
el.setAttribute(key, val);
|
||||
}
|
||||
}
|
||||
|
||||
for (const child of children) {
|
||||
|
||||
Reference in New Issue
Block a user