TOPIC:

Javascript error WorldBiz template with NO logo set 4 months 4 days ago #249841

  • Topic Author
  • p38
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 12
  • Thanks: 0
Our site generates javascript errors, which prevents other components working if the WorldBiz template does not have any logo configured, or if you use "tmpl=component"

The code only works if the logo div exists. So this:

$gantry->addInlineScript('
jQuery(document).ready(
function(){
jQuery("#rt-logo-img").get(0).src="'.$source.'";
});
'."\n");

needed to be changed to

$gantry->addInlineScript('
jQuery(document).ready(
function(){
if (jQuery("#rt-logo-img").length) {
jQuery("#rt-logo-img").get(0).src="'.$source.'";
}
});
'."\n");

That piece of code can be found in /templates/worldbiz/features/styledeclaration.php on line 224

Hope this helps you.

Please Log in or Create an account to join the conversation.

Javascript error WorldBiz template with NO logo set 4 months 4 days ago #249843

  • tihana.krivic's Avatar
  • tihana.krivic
  • Away
  • Moderator
  • Moderator
  • Posts: 3741
  • Karma: 3
  • Thanks: 302
Hi,

thanks for this! :)

Regards,
Tihana

Please Log in or Create an account to join the conversation.

Javascript error WorldBiz template with NO logo set 2 months 1 week ago #251891

  • ReeceWong
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 1
  • Thanks: 0
This is a good and Informative post. In this post I truly got quality information. I will correct the flaws in my project https://prothesiswriter.com/

Please Log in or Create an account to join the conversation.

Last edit: Post by ReeceWong.
  • Page:
  • 1
Time to create page: 0.045 seconds

BreezingForms Pro 1.4.7 for WordPress Released!

Available in the membership section.

September Discount!

Massive discounts on all subscriptions!

Get Your Subscription Here

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Special Offer

Summer Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!