From da9a84554aff892a9791f0fd18e944d90f0fa20a Mon Sep 17 00:00:00 2001 From: Eric Fernance Date: Fri, 18 Apr 2014 14:46:34 +1000 Subject: [PATCH] Pulls out manual jQuery load and uses JHTML Issue #53 Signed-off-by: Eric Fernance --- .gitignore | 1 + build.xml | 79 --------------------------------------------- plugin/pbevents.php | 6 ++-- 3 files changed, 5 insertions(+), 81 deletions(-) create mode 100644 .gitignore delete mode 100644 build.xml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..12a34dd --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/build.xml diff --git a/build.xml b/build.xml deleted file mode 100644 index 43ed6b7..0000000 --- a/build.xml +++ /dev/null @@ -1,79 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/plugin/pbevents.php b/plugin/pbevents.php index 735167f..c83ef84 100644 --- a/plugin/pbevents.php +++ b/plugin/pbevents.php @@ -9,6 +9,9 @@ jimport('joomla.mail.helper'); +JHtml::_('behavior.framework'); +JHtml::_('jquery.framework'); + $version = new JVersion(); if (!defined('DS')) @@ -68,10 +71,9 @@ public function onContentPrepare($context, &$row, &$params, $page = 0) } //inject the form, javascript and, css - JHtml::_('behavior.framework'); $doc = JFactory::getDocument(); include(JPATH_BASE.DS.'plugins'.DS.'content'.DS.'pbevents'.DS.'scripts'.DS.'inject_custom_fields.php'); - echo ''; + //echo ''; require_once(JPATH_BASE.DS.'plugins'.DS.'content'.DS.'pbevents'.DS.'scripts'.DS.'pbevents.php'); echo '';