diff --git a/assets/components/quip/js/sections/home.js b/assets/components/quip/js/sections/home.js index 544e9f1..537c42c 100644 --- a/assets/components/quip/js/sections/home.js +++ b/assets/components/quip/js/sections/home.js @@ -1,7 +1,3 @@ -Ext.onReady(function() { - MODx.load({ xtype: 'quip-page-home'}); -}); - Quip.page.Home = function(config) { config = config || {}; Ext.applyIf(config,{ diff --git a/assets/components/quip/js/sections/thread.js b/assets/components/quip/js/sections/thread.js index 1ed206a..640d4a9 100644 --- a/assets/components/quip/js/sections/thread.js +++ b/assets/components/quip/js/sections/thread.js @@ -1,10 +1,3 @@ -Ext.onReady(function() { - MODx.load({ - xtype: 'quip-page-thread' - ,thread: MODx.request.thread - }); -}); - Quip.page.Thread = function(config) { config = config || {}; Ext.applyIf(config,{ diff --git a/core/components/quip/controllers/home.class.php b/core/components/quip/controllers/home.class.php index 4e8657f..e76e115 100644 --- a/core/components/quip/controllers/home.class.php +++ b/core/components/quip/controllers/home.class.php @@ -31,6 +31,7 @@ public function loadCustomCssJs() { $this->addJavascript($this->quip->config['jsUrl'].'widgets/comments.grid.js'); $this->addJavascript($this->quip->config['jsUrl'].'widgets/threads.panel.js'); $this->addLastJavascript($this->quip->config['jsUrl'].'sections/home.js'); + $this->addHtml(""); } public function getTemplateFile() { return $this->quip->config['templatesPath'].'home.tpl'; } } \ No newline at end of file diff --git a/core/components/quip/controllers/thread.class.php b/core/components/quip/controllers/thread.class.php index cb6c745..eab5fa3 100644 --- a/core/components/quip/controllers/thread.class.php +++ b/core/components/quip/controllers/thread.class.php @@ -32,6 +32,7 @@ public function loadCustomCssJs() { $this->addJavascript($this->quip->config['jsUrl'].'widgets/notifications.grid.js'); $this->addJavascript($this->quip->config['jsUrl'].'widgets/thread.panel.js'); $this->addLastJavascript($this->quip->config['jsUrl'].'sections/thread.js'); + $this->addHtml(""); } public function getTemplateFile() { return $this->quip->config['templatesPath'].'thread.tpl'; } } \ No newline at end of file