Added the [Run Expansion] button option for faster compile and install option of selected components.
This commit is contained in:
@@ -82,4 +82,26 @@ if ($this->saveOrder)
|
||||
<?php endif; ?>
|
||||
<input type="hidden" name="task" value="" />
|
||||
<?php echo JHtml::_('form.token'); ?>
|
||||
</form>
|
||||
</form>
|
||||
<script type="text/javascript">
|
||||
// admin_views footer script
|
||||
|
||||
// waiting spinner
|
||||
var outerDiv = jQuery('body');
|
||||
jQuery('<div id="loading"></div>')
|
||||
.css("background", "rgba(255, 255, 255, .8) url('components/com_componentbuilder/assets/images/import.gif') 50% 15% no-repeat")
|
||||
.css("top", outerDiv.position().top - jQuery(window).scrollTop())
|
||||
.css("left", outerDiv.position().left - jQuery(window).scrollLeft())
|
||||
.css("width", outerDiv.width())
|
||||
.css("height", outerDiv.height())
|
||||
.css("position", "fixed")
|
||||
.css("opacity", "0.80")
|
||||
.css("-ms-filter", "progid:DXImageTransform.Microsoft.Alpha(Opacity = 80)")
|
||||
.css("filter", "alpha(opacity = 80)")
|
||||
.css("display", "none")
|
||||
.appendTo(outerDiv);
|
||||
// when the expand button is clicked
|
||||
jQuery('#toolbar').on('click',"button.button-expand-2", function(e){
|
||||
jQuery('#loading').show();
|
||||
});
|
||||
</script>
|
@@ -132,6 +132,11 @@ class ComponentbuilderViewAdmin_views extends JViewLegacy
|
||||
JToolBarHelper::custom('admin_views.exportData', 'download', '', 'COM_COMPONENTBUILDER_EXPORT_DATA', true);
|
||||
}
|
||||
}
|
||||
if ($this->user->authorise('admin_view.run_expansion', 'com_componentbuilder'))
|
||||
{
|
||||
// add Run Expansion button.
|
||||
JToolBarHelper::custom('admin_views.runExpansion', 'expand-2', '', 'COM_COMPONENTBUILDER_RUN_EXPANSION', false);
|
||||
}
|
||||
|
||||
if ($this->canDo->get('core.import') && $this->canDo->get('admin_view.import'))
|
||||
{
|
||||
|
@@ -304,6 +304,11 @@ class ComponentbuilderViewCompiler extends JViewLegacy
|
||||
// JToolBarHelper::custom('compiler.back', 'undo-2', '', 'COM_COMPONENTBUILDER_BACK', false);
|
||||
// add cpanel button
|
||||
JToolBarHelper::custom('compiler.dashboard', 'grid-2', '', 'COM_COMPONENTBUILDER_DASH', false);
|
||||
if ($this->canDo->get('compiler.run_expansion'))
|
||||
{
|
||||
// add Run Expansion button.
|
||||
JToolBarHelper::custom('compiler.runExpansion', 'expand-2', '', 'COM_COMPONENTBUILDER_RUN_EXPANSION', false);
|
||||
}
|
||||
if ($this->canDo->get('compiler.clear_tmp'))
|
||||
{
|
||||
// add Clear tmp button.
|
||||
|
@@ -82,4 +82,26 @@ if ($this->saveOrder)
|
||||
<?php endif; ?>
|
||||
<input type="hidden" name="task" value="" />
|
||||
<?php echo JHtml::_('form.token'); ?>
|
||||
</form>
|
||||
</form>
|
||||
<script type="text/javascript">
|
||||
// custom_codes footer script
|
||||
|
||||
// waiting spinner
|
||||
var outerDiv = jQuery('body');
|
||||
jQuery('<div id="loading"></div>')
|
||||
.css("background", "rgba(255, 255, 255, .8) url('components/com_componentbuilder/assets/images/import.gif') 50% 15% no-repeat")
|
||||
.css("top", outerDiv.position().top - jQuery(window).scrollTop())
|
||||
.css("left", outerDiv.position().left - jQuery(window).scrollLeft())
|
||||
.css("width", outerDiv.width())
|
||||
.css("height", outerDiv.height())
|
||||
.css("position", "fixed")
|
||||
.css("opacity", "0.80")
|
||||
.css("-ms-filter", "progid:DXImageTransform.Microsoft.Alpha(Opacity = 80)")
|
||||
.css("filter", "alpha(opacity = 80)")
|
||||
.css("display", "none")
|
||||
.appendTo(outerDiv);
|
||||
// when the expand button is clicked
|
||||
jQuery('#toolbar').on('click',"button.button-expand-2", function(e){
|
||||
jQuery('#loading').show();
|
||||
});
|
||||
</script>
|
@@ -132,6 +132,11 @@ class ComponentbuilderViewCustom_codes extends JViewLegacy
|
||||
JToolBarHelper::custom('custom_codes.exportData', 'download', '', 'COM_COMPONENTBUILDER_EXPORT_DATA', true);
|
||||
}
|
||||
}
|
||||
if ($this->user->authorise('custom_code.run_expansion', 'com_componentbuilder'))
|
||||
{
|
||||
// add Run Expansion button.
|
||||
JToolBarHelper::custom('custom_codes.runExpansion', 'expand-2', '', 'COM_COMPONENTBUILDER_RUN_EXPANSION', false);
|
||||
}
|
||||
|
||||
if ($this->canDo->get('core.import') && $this->canDo->get('custom_code.import'))
|
||||
{
|
||||
|
@@ -82,4 +82,26 @@ if ($this->saveOrder)
|
||||
<?php endif; ?>
|
||||
<input type="hidden" name="task" value="" />
|
||||
<?php echo JHtml::_('form.token'); ?>
|
||||
</form>
|
||||
</form>
|
||||
<script type="text/javascript">
|
||||
// dynamic_gets footer script
|
||||
|
||||
// waiting spinner
|
||||
var outerDiv = jQuery('body');
|
||||
jQuery('<div id="loading"></div>')
|
||||
.css("background", "rgba(255, 255, 255, .8) url('components/com_componentbuilder/assets/images/import.gif') 50% 15% no-repeat")
|
||||
.css("top", outerDiv.position().top - jQuery(window).scrollTop())
|
||||
.css("left", outerDiv.position().left - jQuery(window).scrollLeft())
|
||||
.css("width", outerDiv.width())
|
||||
.css("height", outerDiv.height())
|
||||
.css("position", "fixed")
|
||||
.css("opacity", "0.80")
|
||||
.css("-ms-filter", "progid:DXImageTransform.Microsoft.Alpha(Opacity = 80)")
|
||||
.css("filter", "alpha(opacity = 80)")
|
||||
.css("display", "none")
|
||||
.appendTo(outerDiv);
|
||||
// when the expand button is clicked
|
||||
jQuery('#toolbar').on('click',"button.button-expand-2", function(e){
|
||||
jQuery('#loading').show();
|
||||
});
|
||||
</script>
|
@@ -132,6 +132,11 @@ class ComponentbuilderViewDynamic_gets extends JViewLegacy
|
||||
JToolBarHelper::custom('dynamic_gets.exportData', 'download', '', 'COM_COMPONENTBUILDER_EXPORT_DATA', true);
|
||||
}
|
||||
}
|
||||
if ($this->user->authorise('dynamic_get.run_expansion', 'com_componentbuilder'))
|
||||
{
|
||||
// add Run Expansion button.
|
||||
JToolBarHelper::custom('dynamic_gets.runExpansion', 'expand-2', '', 'COM_COMPONENTBUILDER_RUN_EXPANSION', false);
|
||||
}
|
||||
|
||||
if ($this->canDo->get('core.import') && $this->canDo->get('dynamic_get.import'))
|
||||
{
|
||||
|
@@ -82,4 +82,26 @@ if ($this->saveOrder)
|
||||
<?php endif; ?>
|
||||
<input type="hidden" name="task" value="" />
|
||||
<?php echo JHtml::_('form.token'); ?>
|
||||
</form>
|
||||
</form>
|
||||
<script type="text/javascript">
|
||||
// fields footer script
|
||||
|
||||
// waiting spinner
|
||||
var outerDiv = jQuery('body');
|
||||
jQuery('<div id="loading"></div>')
|
||||
.css("background", "rgba(255, 255, 255, .8) url('components/com_componentbuilder/assets/images/import.gif') 50% 15% no-repeat")
|
||||
.css("top", outerDiv.position().top - jQuery(window).scrollTop())
|
||||
.css("left", outerDiv.position().left - jQuery(window).scrollLeft())
|
||||
.css("width", outerDiv.width())
|
||||
.css("height", outerDiv.height())
|
||||
.css("position", "fixed")
|
||||
.css("opacity", "0.80")
|
||||
.css("-ms-filter", "progid:DXImageTransform.Microsoft.Alpha(Opacity = 80)")
|
||||
.css("filter", "alpha(opacity = 80)")
|
||||
.css("display", "none")
|
||||
.appendTo(outerDiv);
|
||||
// when the expand button is clicked
|
||||
jQuery('#toolbar').on('click',"button.button-expand-2", function(e){
|
||||
jQuery('#loading').show();
|
||||
});
|
||||
</script>
|
@@ -132,6 +132,11 @@ class ComponentbuilderViewFields extends JViewLegacy
|
||||
JToolBarHelper::custom('fields.exportData', 'download', '', 'COM_COMPONENTBUILDER_EXPORT_DATA', true);
|
||||
}
|
||||
}
|
||||
if ($this->user->authorise('field.run_expansion', 'com_componentbuilder'))
|
||||
{
|
||||
// add Run Expansion button.
|
||||
JToolBarHelper::custom('fields.runExpansion', 'expand-2', '', 'COM_COMPONENTBUILDER_RUN_EXPANSION', false);
|
||||
}
|
||||
|
||||
if ($this->canDo->get('core.import') && $this->canDo->get('field.import'))
|
||||
{
|
||||
|
@@ -85,6 +85,7 @@ if ($this->saveOrder)
|
||||
</form>
|
||||
<script type="text/javascript">
|
||||
// joomla_components footer script
|
||||
|
||||
// waiting spinner
|
||||
var outerDiv = jQuery('body');
|
||||
jQuery('<div id="loading"></div>')
|
||||
@@ -99,25 +100,26 @@ jQuery('<div id="loading"></div>')
|
||||
.css("filter", "alpha(opacity = 80)")
|
||||
.css("display", "none")
|
||||
.appendTo(outerDiv);
|
||||
|
||||
// when the clone button is clicked
|
||||
jQuery('#toolbar').on('click',"button.button-save-copy", function(e){
|
||||
if (document.adminForm.boxchecked.value != 0){
|
||||
jQuery('#loading').show();
|
||||
}
|
||||
});
|
||||
|
||||
// when the backup button is clicked
|
||||
jQuery('#toolbar').on('click',"button.button-archive", function(e){
|
||||
if (document.adminForm.boxchecked.value != 0){
|
||||
jQuery('#loading').show();
|
||||
}
|
||||
});
|
||||
|
||||
// when the export button is clicked
|
||||
jQuery('#toolbar').on('click',"button.button-download", function(e){
|
||||
if (document.adminForm.boxchecked.value != 0){
|
||||
jQuery('#loading').show();
|
||||
}
|
||||
});
|
||||
// when the expand button is clicked
|
||||
jQuery('#toolbar').on('click',"button.button-expand-2", function(e){
|
||||
jQuery('#loading').show();
|
||||
});
|
||||
</script>
|
@@ -147,11 +147,21 @@ class ComponentbuilderViewJoomla_components extends JViewLegacy
|
||||
// add Import JCB Packages button.
|
||||
JToolBarHelper::custom('joomla_components.smartImport', 'upload', '', 'COM_COMPONENTBUILDER_IMPORT_JCB_PACKAGES', false);
|
||||
}
|
||||
if ($this->user->authorise('joomla_component.run_expansion', 'com_componentbuilder'))
|
||||
{
|
||||
// add Run Expansion button.
|
||||
JToolBarHelper::custom('joomla_components.runExpansion', 'expand-2', '', 'COM_COMPONENTBUILDER_RUN_EXPANSION', false);
|
||||
}
|
||||
if ($this->user->authorise('joomla_component.backup', 'com_componentbuilder'))
|
||||
{
|
||||
// add Backup button.
|
||||
JToolBarHelper::custom('joomla_components.backup', 'archive', '', 'COM_COMPONENTBUILDER_BACKUP', false);
|
||||
}
|
||||
if ($this->user->authorise('joomla_component.clear_tmp', 'com_componentbuilder'))
|
||||
{
|
||||
// add Clear tmp button.
|
||||
JToolBarHelper::custom('joomla_components.clearTmp', 'purge', '', 'COM_COMPONENTBUILDER_CLEAR_TMP', false);
|
||||
}
|
||||
|
||||
if ($this->canDo->get('core.import') && $this->canDo->get('joomla_component.import'))
|
||||
{
|
||||
|
Reference in New Issue
Block a user