]> BookStack Code Mirror - bookstack/blobdiff - resources/js/components/page-comments.js
Started refactor and alignment of component system
[bookstack] / resources / js / components / page-comments.js
index c86eead1b865bd8bdaa8184f44bd4ab55a961d7b..0264e24c6b3c13c6b8bf376c1bfadb69f1b73000 100644 (file)
@@ -90,7 +90,7 @@ class PageComments {
             newComment.innerHTML = resp.data;
             this.editingComment.innerHTML = newComment.children[0].innerHTML;
             window.$events.success(this.updatedText);
-            window.components.init(this.editingComment);
+            window.$components.init(this.editingComment);
             this.closeUpdateForm();
             this.editingComment = null;
         }).catch(window.$events.showValidationErrors).then(() => {
@@ -123,7 +123,7 @@ class PageComments {
             newComment.innerHTML = resp.data;
             let newElem = newComment.children[0];
             this.container.appendChild(newElem);
-            window.components.init(newElem);
+            window.$components.init(newElem);
             window.$events.success(this.createdText);
             this.resetForm();
             this.updateCount();