Merge branch 'master' of https://github.com/hacdias/caddy-filemanager
This commit is contained in:
commit
32c9fe029f
4 files changed
+132
-15
No files matched your search
@@ -4,8 +4,9 @@ var editor = {};
|
||||
|
||||
editor.textareaAutoGrow = function() {
|
||||
let autogrow = function() {
|
||||
this.style.height = '5px';
|
||||
this.style.height = this.scrollHeight + 'px';
|
||||
console.log(this.style.height)
|
||||
this.style.height = 'auto';
|
||||
this.style.height = (this.scrollHeight) + 'px';
|
||||
}
|
||||
|
||||
let textareas = document.getElementsByTagName('textarea');
|
||||
@@ -97,11 +98,11 @@ function addFrontMatterItemPrompt(parent) {
|
||||
|
||||
if (type == "array" || type == "object") {
|
||||
if (parent.dataset.type == "parent") {
|
||||
makeFromBaseTemplate(bid, newtype, name, document.querySelector('.frontmatter'));
|
||||
makeFromBaseTemplate(id, type, name, document.querySelector('.frontmatter'));
|
||||
return;
|
||||
}
|
||||
|
||||
makeFromBaseTemplate(bid, newtype, name, block);
|
||||
makeFromBaseTemplate(id, type, name, block);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user