'auto', 'relative' => true)); JHtml::_('script', 'com_contenthistory/jquery.pretty-text-diff.min.js', array('version' => 'auto', 'relative' => true)); JHtml::_('stylesheet', 'com_contenthistory/jquery.pretty-text-diff.css', array('version' => 'auto', 'relative' => true)); // Attach diff to document JFactory::getDocument()->addScriptDeclaration(" (function ($){ $(document).ready(function (){ $('#" . $containerId . " tr').prettyTextDiff(); }); })(jQuery); " ); // Set static array static::$loaded[__METHOD__] = true; return; } }