Browse Source

CustomCategory: test yaml for correctness

master
parent
commit
c29f924cd6
  1. 7
      src/customCategory.js

7
src/customCategory.js

@ -59,6 +59,13 @@ class CustomCategory {
this.modal.content.element.appendChild(input)
input.onclick = () => {
try {
yaml.load(this.textarea.value)
}
catch (e) {
return global.alert(e)
}
this.applyContent(this.textarea.value)
ajax('customCategory', { content: this.textarea.value }, (result) => {})
return true

|||||||
100:0
Loading…
Cancel
Save