Hi,
I love when new bugs are introduced in minor versions.
The popup button system is nicely broken in the latest Joomla build. A nice patch with big explosive side-effects.
So, in order to abort this kind of problem, please edit the file "administrator/components/com_hikashop/buttons/hikapopup.php" and replace the code
class JToolbarButtonHikapopup extends JToolbarButtonPopup {
public function fetchButton($type = 'Modal', $name = '', $text = '', $url = '', $width = 640, $height = 480, $top = 0, $left = 0, $onClose = '', $title = '') {
list($name, $icon) = explode('#', $name, 2);
$ret = parent::fetchButton($type, $name, $text, $url, $width, $height, $top, $left, $onClose, $title);
if(!empty($icon)) {
$ret = str_replace('<i class="icon-out-2">', '<i class="icon-'.$icon.'">', $ret);
}
$ret .= '<script>'."\n".'jQuery(document).ready(function(){jQuery("#modal-'.$name.'").appendTo(jQuery(document.body));});'."\n".'</script>'."\n";
return $ret;
}
}
With
class JToolbarButtonHikapopup extends JToolbarButtonPopup {
public function fetchButton($type = 'Modal', $name = '', $text = '', $url = '', $width = 640, $height = 480, $top = 0, $left = 0, $onClose = '', $title = '') {
list($name, $icon) = explode('#', $name, 2);
$name .= '-btnpopup';
$ret = parent::fetchButton($type, $name, $text, $url, $width, $height, $top, $left, $onClose, $title);
if(!empty($icon)) {
$ret = str_replace(array('<i class="icon-out-2">', '<i class="icon-cog">'), '<i class="icon-'.$icon.'">', $ret);
}
$ret .= '<script>'."\n".'jQuery(document).ready(function(){jQuery("#modal-'.$name.'").appendTo(jQuery(document.body));});'."\n".'</script>'."\n";
return $ret;
}
}
This patch will be include in a new 2.2.0 package.
Regards,