Fixed gh-318 so that default and other none database fields will not trigger SQL update and version increment. Fixed gh-317 that had conflict variable naming in the jsonToString helper method. Improved the refresh method for JCB package area.

This commit is contained in:
2018-07-12 18:35:38 +02:00
parent b42a3a5420
commit 0a7b91829f
14 changed files with 193 additions and 142 deletions

View File

@@ -36,13 +36,14 @@ JHtml::_('behavior.keepalive');
<?php else: ?>
Joomla.submitbutton = function(task)
{
if ('refresh' === task){
if ('joomla_component.refresh' === task){
jQuery('#loading').css('display', 'block');
// clear the history
jQuery.jStorage.flush();
// now start the update
autoJCBpackageInfo();
jQuery('#loading').hide();
// also clear the session memory around the component list
Joomla.submitform(task);
} else {
var form = document.getElementById('adminForm');
// do field validation

View File

@@ -59,7 +59,7 @@ class ComponentbuilderViewImport_joomla_components extends JViewLegacy
// add title to the page
JToolbarHelper::title(JText::_('COM_COMPONENTBUILDER_JCB_PACKAGE_IMPORT'),'upload');
// add refesh button.
JToolBarHelper::custom('refresh', 'refresh', '', 'COM_COMPONENTBUILDER_REFRESH', false);
JToolBarHelper::custom('joomla_component.refresh', 'refresh', '', 'COM_COMPONENTBUILDER_REFRESH', false);
}
// get the session object
$session = JFactory::getSession();