× Discussion about Hot Accordion Joomla module

error on page

More
6 years 7 months ago #21428 by ZR
Replied by ZR on topic error on page
Hi Ivan,

May I know where to find the template_script.js. Thank you.

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

More
6 years 7 months ago #21434 by ivan.milic
Replied by ivan.milic on topic error on page
I gave you path:

/templates/jm-wellness-cosmetics/lib/js/template_scripts.js

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

More
6 years 7 months ago #21435 by ZR
Replied by ZR on topic error on page
Hi Ivan,

Thanks for your help and patience. I finally able to identify where to change the script is at cpanel. Anyway, I'm able to elimiate the mootool error after wrap it with try}. However, there is still error in the templats.js.script Your kind assistance please, thank you. Below is the revised template_script.js

try{
if($('stylearea')){
$('style_icon-1').addEvent('click', function(e) {
e = new Event(e).stop();

if (style_1) style_1.remove();
var file = $template_path+'/css/style1.css';
new Asset.css(file, {id: 'style1'});
style_1 = $('style1');
new Cookie.set('jm_style_wellness_cosmetics','1',{duration: 200,path: "/"});

});

$('style_icon-2').addEvent('click', function(e) {
e = new Event(e).stop();

if (style_2) style_2.remove();
var file = $template_path+'/css/style2.css';
new Asset.css(file, {id: 'style2'});
style_2 = $('style2');
new Cookie.set('jm_style_wellness_cosmetics','2',{duration: 200,path: "/"});

});

$('style_icon-3').addEvent('click', function(e) {
e = new Event(e).stop();

if (style_3) style_3.remove();
var file = $template_path+'/css/style3.css';
new Asset.css(file, {id: 'style3'});
style_3 = $('style3');
new Cookie.set('jm_style_wellness_cosmetics','3',{duration: 200,path: "/"});
});

$('style_icon-4').addEvent('click', function(e) {
e = new Event(e).stop();

if (style_4) style_4.remove();
var file = $template_path+'/css/style4.css';
new Asset.css(file, {id: 'style4'});
style_4 = $('style4');
new Cookie.set('jm_style_wellness_cosmetics','4',{duration: 200,path: "/"});
});
}
});
}catch(e){}

});
// Function to change backgrouns
function changeStyle(style){

var file = $template_path+'/css/style'+style+'.css';
var neww = new Asset.css(file);
new Cookie.set('jm_style_wellness_cosmetics',style,{duration: 200,path: "/"});
}
Attachments:

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

More
6 years 7 months ago #21438 by ivan.milic
Replied by ivan.milic on topic error on page
Ok, you did not put it well now error is on try..catch. Send me original file i will return you changed file

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

More
6 years 7 months ago #21440 by ZR
Replied by ZR on topic error on page
Hi Ivan,

Thank you so much. I will provide you the acess via moderator, that will be much easier. Thank you so much. I will definitely recommend the site to my fellow friends

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

More
6 years 7 months ago #21445 by ivan.milic
Replied by ivan.milic on topic error on page
ok fixed

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

Moderators: milos
Time to create page: 0.118 seconds