java script only works when logged in as administrator

Questions related to the configuration of Joomla, Templates, and Security related questions/issues
Rate this topic: Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.
GK User
Sun Dec 09, 2012 5:10 pm
Hi,
I have a strange problem. I added fx.slide effect to the module.
Code: Select all
// Funkcja rozwijania i zwijania
window.addEvent('domready', function() {

var myVerticalSlide = new Fx.Slide('secpageinfo');
$('slidedown').addEvent('click', function(event){
  myVerticalSlide.toggle();
   event.stop();
});
$('slideup').addEvent('click', function(event){
  myVerticalSlide.toggle();
   event.stop();
});
$('wiecej').addEvent('click', function(event){
  myVerticalSlide.toggle();
   event.stop();
});

It works when I'm logged in as a super admin.
When I'm logged out, the script does not work > http://www.ainni.pl/index.php/rzemieslnicy
What am I doing wrong?
User avatar
Fresh Boarder

GK User
Sun Dec 09, 2012 6:02 pm
And now curiosity. When something is on the modules ('social + toolbar') script works correctly even when no one is logged.
User avatar
Fresh Boarder


cron