Fixed gh-338 to insure that the custom buttons work on the site view page

This commit is contained in:
2018-09-11 22:08:58 +02:00
parent 7fcc93aa5b
commit 5962b557c8
9 changed files with 65 additions and 24 deletions

View File

@@ -13,7 +13,7 @@
defined('_JEXEC') or die('Restricted access');
?>
<div class="uk-alert uk-alert-danger" data-uk-alert>
<h2><?php echo JText::_('COM_COMPONENTBUILDER_ERROR'); ?></h2>
</div>

View File

@@ -77,7 +77,7 @@ class ComponentbuilderViewApi extends JViewLegacy
$this->document->addScript(JURI::root(true) .'/media/com_componentbuilder/uikit-v2/js/uikit'.$size.'.js', (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript');
}
// add the document default css file
$this->document->addStyleSheet(JURI::root(true) .'/components/com_componentbuilder/assets/css/api.css', (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');
$this->document->addStyleSheet(JURI::root(true) .'/components/com_componentbuilder/assets/css/api.css', (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');
}
/**