Fixed fade-in affect problem of not loading the affect when added.
This commit is contained in:
parent
7f52decf16
commit
02f9523e1b
@ -36,7 +36,7 @@ Would you require more help please open and issue here on [gitHub today](https:/
|
|||||||
+ *Version*: 2.1.10
|
+ *Version*: 2.1.10
|
||||||
+ *Copyright*: Copyright (C) 2015. All Rights Reserved
|
+ *Copyright*: Copyright (C) 2015. All Rights Reserved
|
||||||
+ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
+ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
+ *Line count*: **82827**
|
+ *Line count*: **82957**
|
||||||
+ *File count*: **503**
|
+ *File count*: **503**
|
||||||
+ *Folder count*: **99**
|
+ *Folder count*: **99**
|
||||||
|
|
||||||
|
@ -1074,12 +1074,20 @@ class Get
|
|||||||
// add_css_view
|
// add_css_view
|
||||||
if ($view->add_css_view == 1)
|
if ($view->add_css_view == 1)
|
||||||
{
|
{
|
||||||
|
if (!isset($this->customScriptBuilder['css_view'][$name_single]))
|
||||||
|
{
|
||||||
|
$this->customScriptBuilder['css_view'][$name_single] = '';
|
||||||
|
}
|
||||||
$this->customScriptBuilder['css_view'][$name_single] .= base64_decode($view->css_view);
|
$this->customScriptBuilder['css_view'][$name_single] .= base64_decode($view->css_view);
|
||||||
unset($view->css_view);
|
unset($view->css_view);
|
||||||
}
|
}
|
||||||
// add_css_views
|
// add_css_views
|
||||||
if ($view->add_css_views == 1)
|
if ($view->add_css_views == 1)
|
||||||
{
|
{
|
||||||
|
if (!isset($this->customScriptBuilder['css_views'][$name_single]))
|
||||||
|
{
|
||||||
|
$this->customScriptBuilder['css_views'][$name_single] = '';
|
||||||
|
}
|
||||||
$this->customScriptBuilder['css_views'][$name_list] .= base64_decode($view->css_views);
|
$this->customScriptBuilder['css_views'][$name_list] .= base64_decode($view->css_views);
|
||||||
unset($view->css_views);
|
unset($view->css_views);
|
||||||
}
|
}
|
||||||
|
@ -5838,7 +5838,8 @@ class Interpretation extends Fields
|
|||||||
|
|
||||||
public function setFadeInEfect(&$view)
|
public function setFadeInEfect(&$view)
|
||||||
{
|
{
|
||||||
if ($view->add_fadein == 1)
|
// check if we should load the fade in affect
|
||||||
|
if ($view['settings']->add_fadein == 1)
|
||||||
{
|
{
|
||||||
// set view name
|
// set view name
|
||||||
$fadein[] = "<script type=\"text/javascript\">";
|
$fadein[] = "<script type=\"text/javascript\">";
|
||||||
|
@ -75,11 +75,9 @@ abstract class ComponentbuilderHelper
|
|||||||
{
|
{
|
||||||
// set image
|
// set image
|
||||||
$image = JPATH_SITE.'/'.$path;
|
$image = JPATH_SITE.'/'.$path;
|
||||||
// chack if exists
|
// check if exists
|
||||||
if (file_exists($image))
|
if (file_exists($image) && $result = @getimagesize($image))
|
||||||
{
|
{
|
||||||
// get image info
|
|
||||||
$result = getimagesize($image);
|
|
||||||
// return type request
|
// return type request
|
||||||
switch ($request)
|
switch ($request)
|
||||||
{
|
{
|
||||||
|
@ -34,7 +34,29 @@ JHtml::_('formbehavior.chosen', 'select');
|
|||||||
JHtml::_('behavior.keepalive');
|
JHtml::_('behavior.keepalive');
|
||||||
$componentParams = JComponentHelper::getParams('com_componentbuilder');
|
$componentParams = JComponentHelper::getParams('com_componentbuilder');
|
||||||
?>
|
?>
|
||||||
<div id="componentbuilder_loader">
|
<script type="text/javascript">
|
||||||
|
// 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);
|
||||||
|
jQuery('#loading').show();
|
||||||
|
// when page is ready remove and show
|
||||||
|
jQuery(window).load(function() {
|
||||||
|
jQuery('#componentbuilder_loader').fadeIn('fast');
|
||||||
|
jQuery('#loading').hide();
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
<div id="componentbuilder_loader" style="display: none;">
|
||||||
<form action="<?php echo JRoute::_('index.php?option=com_componentbuilder&layout=edit&id='.(int) $this->item->id.$this->referral); ?>" method="post" name="adminForm" id="adminForm" class="form-validate" enctype="multipart/form-data">
|
<form action="<?php echo JRoute::_('index.php?option=com_componentbuilder&layout=edit&id='.(int) $this->item->id.$this->referral); ?>" method="post" name="adminForm" id="adminForm" class="form-validate" enctype="multipart/form-data">
|
||||||
|
|
||||||
<?php echo JLayoutHelper::render('admin_view.settings_above', $this); ?><div class="form-horizontal">
|
<?php echo JLayoutHelper::render('admin_view.settings_above', $this); ?><div class="form-horizontal">
|
||||||
|
@ -34,7 +34,29 @@ JHtml::_('formbehavior.chosen', 'select');
|
|||||||
JHtml::_('behavior.keepalive');
|
JHtml::_('behavior.keepalive');
|
||||||
$componentParams = JComponentHelper::getParams('com_componentbuilder');
|
$componentParams = JComponentHelper::getParams('com_componentbuilder');
|
||||||
?>
|
?>
|
||||||
<div id="componentbuilder_loader">
|
<script type="text/javascript">
|
||||||
|
// 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);
|
||||||
|
jQuery('#loading').show();
|
||||||
|
// when page is ready remove and show
|
||||||
|
jQuery(window).load(function() {
|
||||||
|
jQuery('#componentbuilder_loader').fadeIn('fast');
|
||||||
|
jQuery('#loading').hide();
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
<div id="componentbuilder_loader" style="display: none;">
|
||||||
<form action="<?php echo JRoute::_('index.php?option=com_componentbuilder&layout=edit&id='.(int) $this->item->id.$this->referral); ?>" method="post" name="adminForm" id="adminForm" class="form-validate" enctype="multipart/form-data">
|
<form action="<?php echo JRoute::_('index.php?option=com_componentbuilder&layout=edit&id='.(int) $this->item->id.$this->referral); ?>" method="post" name="adminForm" id="adminForm" class="form-validate" enctype="multipart/form-data">
|
||||||
|
|
||||||
<?php echo JLayoutHelper::render('component.details_above', $this); ?><div class="form-horizontal">
|
<?php echo JLayoutHelper::render('component.details_above', $this); ?><div class="form-horizontal">
|
||||||
|
@ -34,7 +34,29 @@ JHtml::_('formbehavior.chosen', 'select');
|
|||||||
JHtml::_('behavior.keepalive');
|
JHtml::_('behavior.keepalive');
|
||||||
$componentParams = JComponentHelper::getParams('com_componentbuilder');
|
$componentParams = JComponentHelper::getParams('com_componentbuilder');
|
||||||
?>
|
?>
|
||||||
<div id="componentbuilder_loader">
|
<script type="text/javascript">
|
||||||
|
// 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);
|
||||||
|
jQuery('#loading').show();
|
||||||
|
// when page is ready remove and show
|
||||||
|
jQuery(window).load(function() {
|
||||||
|
jQuery('#componentbuilder_loader').fadeIn('fast');
|
||||||
|
jQuery('#loading').hide();
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
<div id="componentbuilder_loader" style="display: none;">
|
||||||
<form action="<?php echo JRoute::_('index.php?option=com_componentbuilder&layout=edit&id='.(int) $this->item->id.$this->referral); ?>" method="post" name="adminForm" id="adminForm" class="form-validate" enctype="multipart/form-data">
|
<form action="<?php echo JRoute::_('index.php?option=com_componentbuilder&layout=edit&id='.(int) $this->item->id.$this->referral); ?>" method="post" name="adminForm" id="adminForm" class="form-validate" enctype="multipart/form-data">
|
||||||
|
|
||||||
<?php echo JLayoutHelper::render('custom_admin_view.details_above', $this); ?><div class="form-horizontal span9">
|
<?php echo JLayoutHelper::render('custom_admin_view.details_above', $this); ?><div class="form-horizontal span9">
|
||||||
|
@ -34,7 +34,29 @@ JHtml::_('formbehavior.chosen', 'select');
|
|||||||
JHtml::_('behavior.keepalive');
|
JHtml::_('behavior.keepalive');
|
||||||
$componentParams = JComponentHelper::getParams('com_componentbuilder');
|
$componentParams = JComponentHelper::getParams('com_componentbuilder');
|
||||||
?>
|
?>
|
||||||
<div id="componentbuilder_loader">
|
<script type="text/javascript">
|
||||||
|
// 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);
|
||||||
|
jQuery('#loading').show();
|
||||||
|
// when page is ready remove and show
|
||||||
|
jQuery(window).load(function() {
|
||||||
|
jQuery('#componentbuilder_loader').fadeIn('fast');
|
||||||
|
jQuery('#loading').hide();
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
<div id="componentbuilder_loader" style="display: none;">
|
||||||
<form action="<?php echo JRoute::_('index.php?option=com_componentbuilder&layout=edit&id='.(int) $this->item->id.$this->referral); ?>" method="post" name="adminForm" id="adminForm" class="form-validate" enctype="multipart/form-data">
|
<form action="<?php echo JRoute::_('index.php?option=com_componentbuilder&layout=edit&id='.(int) $this->item->id.$this->referral); ?>" method="post" name="adminForm" id="adminForm" class="form-validate" enctype="multipart/form-data">
|
||||||
|
|
||||||
<?php echo JLayoutHelper::render('dynamic_get.gettable_above', $this); ?><div class="form-horizontal">
|
<?php echo JLayoutHelper::render('dynamic_get.gettable_above', $this); ?><div class="form-horizontal">
|
||||||
|
@ -34,7 +34,29 @@ JHtml::_('formbehavior.chosen', 'select');
|
|||||||
JHtml::_('behavior.keepalive');
|
JHtml::_('behavior.keepalive');
|
||||||
$componentParams = JComponentHelper::getParams('com_componentbuilder');
|
$componentParams = JComponentHelper::getParams('com_componentbuilder');
|
||||||
?>
|
?>
|
||||||
<div id="componentbuilder_loader">
|
<script type="text/javascript">
|
||||||
|
// 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);
|
||||||
|
jQuery('#loading').show();
|
||||||
|
// when page is ready remove and show
|
||||||
|
jQuery(window).load(function() {
|
||||||
|
jQuery('#componentbuilder_loader').fadeIn('fast');
|
||||||
|
jQuery('#loading').hide();
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
<div id="componentbuilder_loader" style="display: none;">
|
||||||
<form action="<?php echo JRoute::_('index.php?option=com_componentbuilder&layout=edit&id='.(int) $this->item->id.$this->referral); ?>" method="post" name="adminForm" id="adminForm" class="form-validate" enctype="multipart/form-data">
|
<form action="<?php echo JRoute::_('index.php?option=com_componentbuilder&layout=edit&id='.(int) $this->item->id.$this->referral); ?>" method="post" name="adminForm" id="adminForm" class="form-validate" enctype="multipart/form-data">
|
||||||
|
|
||||||
<?php echo JLayoutHelper::render('help_document.details_above', $this); ?><div class="form-horizontal">
|
<?php echo JLayoutHelper::render('help_document.details_above', $this); ?><div class="form-horizontal">
|
||||||
|
@ -34,7 +34,29 @@ JHtml::_('formbehavior.chosen', 'select');
|
|||||||
JHtml::_('behavior.keepalive');
|
JHtml::_('behavior.keepalive');
|
||||||
$componentParams = JComponentHelper::getParams('com_componentbuilder');
|
$componentParams = JComponentHelper::getParams('com_componentbuilder');
|
||||||
?>
|
?>
|
||||||
<div id="componentbuilder_loader">
|
<script type="text/javascript">
|
||||||
|
// 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);
|
||||||
|
jQuery('#loading').show();
|
||||||
|
// when page is ready remove and show
|
||||||
|
jQuery(window).load(function() {
|
||||||
|
jQuery('#componentbuilder_loader').fadeIn('fast');
|
||||||
|
jQuery('#loading').hide();
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
<div id="componentbuilder_loader" style="display: none;">
|
||||||
<form action="<?php echo JRoute::_('index.php?option=com_componentbuilder&layout=edit&id='.(int) $this->item->id.$this->referral); ?>" method="post" name="adminForm" id="adminForm" class="form-validate" enctype="multipart/form-data">
|
<form action="<?php echo JRoute::_('index.php?option=com_componentbuilder&layout=edit&id='.(int) $this->item->id.$this->referral); ?>" method="post" name="adminForm" id="adminForm" class="form-validate" enctype="multipart/form-data">
|
||||||
|
|
||||||
<?php echo JLayoutHelper::render('site_view.details_above', $this); ?><div class="form-horizontal span9">
|
<?php echo JLayoutHelper::render('site_view.details_above', $this); ?><div class="form-horizontal span9">
|
||||||
|
Loading…
Reference in New Issue
Block a user