Skip to content

Commit

Permalink
Pulls out manual jQuery load and uses JHTML
Browse files Browse the repository at this point in the history
Issue #53

Signed-off-by: Eric Fernance <[email protected]>
  • Loading branch information
purplebeanie committed Apr 18, 2014
1 parent 24ee687 commit da9a845
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 81 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build.xml
79 changes: 0 additions & 79 deletions build.xml

This file was deleted.

6 changes: 4 additions & 2 deletions plugin/pbevents.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@

jimport('joomla.mail.helper');

JHtml::_('behavior.framework');
JHtml::_('jquery.framework');


$version = new JVersion();
if (!defined('DS'))
Expand Down Expand Up @@ -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 '<script src="'.JURI::root(false).'administrator/components/com_pbevents/assets/jquery-1.9.1.original.min.js"></script>';
//echo '<script src="'.JURI::root(false).'administrator/components/com_pbevents/assets/jquery-1.9.1.original.min.js"></script>';
require_once(JPATH_BASE.DS.'plugins'.DS.'content'.DS.'pbevents'.DS.'scripts'.DS.'pbevents.php');
echo '<link rel="stylesheet" href="'.JURI::root(false).'plugins/content/pbevents/styles/pbevents.css" type="text/css"/>';

Expand Down

0 comments on commit da9a845

Please sign in to comment.