Posted by mean0dspt on March 20, 2009 at 2:12pm
Sorry to bother but I have little skills in js.
I'm using the Views carousel module to get a carousel of images. It works fine when the page is viewed in default language.
But when I switch to another language (based on url path only negotiation), the script doesn't run.
I checked the source code, it's identical in both cases.
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/viewscarousel/jquery.jcarousel.css?7" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/viewscarousel/skins/ie7/skin.css?7" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/viewscarousel/skins/tango/skin.css?7" />
..............
<script type="text/javascript" src="/sites/all/modules/viewscarousel/jquery.jcarousel.min.js?7"></script>
<script type="text/javascript" src="/sites/all/modules/viewscarousel/viewscarousel.js?7"></script>
<script type="text/javascript">
..............
<!--//--><![CDATA[//><!--
jQuery.extend(Drupal.settings, { "basePath": "/", "viewscarousel": { "viewscarousel-sponsors-default": { "vertical": 1, "scroll": "1", "auto": "10", "wrap": "both" } } });
//--><!]]>
</script>The only difference is the url's
http://cttimes.net/node/13 - it shows
http://cttimes.net/ru/content/tekhnicheskaya-programma - it's not shown
How do I fix it? Do I need some specific "basePath" or whatever?
Comments
they look the same to me
I'm not sure what I'm supposed to see, but both URLs look almost the same to me.
the difference
in urls is the prefix /ru/
the difference in pages is that the one with /ru/ shows no jcarousel for images