mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-05-22 22:59:58 +08:00
Converted image manager into vue component
This commit is contained in:
@ -21,6 +21,8 @@ for (let i = 0, len = componentNames.length; i < len; i++) {
|
||||
if (typeof window.components[name] === "undefined") window.components[name] = [];
|
||||
for (let j = 0, jLen = elems.length; j < jLen; j++) {
|
||||
let instance = new component(elems[j]);
|
||||
if (typeof elems[j].components === 'undefined') elems[j].components = {};
|
||||
elems[j].components[name] = instance;
|
||||
window.components[name].push(instance);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user