tonito Posted August 21, 2009 Share Posted August 21, 2009 Bonjour,J'ai de sèrieux problemes javascript depuis l'installation 1.2.10. Avec mon thème, mais aussi avec le thème d'orgine. Je ne vois pas ou est l'erreur. Tout marchait tres bien en 1.2.8. Exemples:- http://www.continentalmint.com/coin-sets/71-sacagawea-dollars2000-2008.html (tout marche bien)- http://www.continentalmint.com/73-6-bu-morgan-silver-dollars-1878-1904-in-dansco-album.html (javascript ne marche plus)Dane le premier exemple, tout marche bien, dans le second exemple, la barre "In the same category" ne fonctionne plus, le bloc category n'affiche plus aucune categorie, sauf si ajax est arrete et tout rajout au "add to cart" n'est pas anime style ajax. De plus Firefox me donne: serialScrollNbImagesDisplayed is not defined, source file http://continentalmint.com/modules/productscategory/js/productcategory.js line 7".Tout se joue sur le nombre d'images dans le productcategory barre. Link to comment Share on other sites More sharing options...
Peha Posted August 21, 2009 Share Posted August 21, 2009 Bonjour,re-upload tes fichier javascript, peut être un fichier corrompus ? Link to comment Share on other sites More sharing options...
tonito Posted August 21, 2009 Author Share Posted August 21, 2009 Merci!Votre suggestion m'a permis de trouver la source du probleme. Le module "productcategory" a changé, probablement depuis la version 1.2.10. Le javascript est bugge, en tout cas chez moi, et plante javascript pour toutes catégories avec plus de 6 produits parce que le scroll dans le module "productcategory" est alors activé . J'ai remplacé le nouveau module par l'ancien et tout fonctionne correctement. Je n'ai pas testé sur une nouvelle installation, mais je pense que ça plante aussi (ma version est tres peu modifiée, et j'ai testé avec tous les modules off). Je pense que c'est un problème javascript dans le module "productcategory" de la version 1.2.10. Est-ce que vous pourriez vérifiez?L'ancien javascript est comme suit: var serialScrollNbImagesDisplayed; var serialScrollNbImages; var serialScrollActualImagesIndex; function serialScrollFixLock(event, targeted, scrolled, items, position){ $('#productscategory_scroll_left').css('cursor', position == 0 ? 'default' : 'pointer').fadeTo(500, position == 0 ? 0.2 : 1); $('#productscategory_scroll_right').css('cursor', position + serialScrollNbImagesDisplayed == serialScrollNbImages ? 'default' : 'pointer').fadeTo(500, position + serialScrollNbImagesDisplayed == serialScrollNbImages ? 0.2 : 1); return true; } $(document).ready(function(){ //init the serialScroll for thumbs serialScrollNbImages = $('#productscategory_list li').length; serialScrollNbImagesDisplayed = 5; serialScrollActualImagesIndex = 0; $('#productscategory_list').serialScroll({ items:'li', prev:'a#productscategory_scroll_left', next:'a#productscategory_scroll_right', axis:'x', offset:0, stop:true, onBefore:serialScrollFixLock, duration:300, step: 1, lock: false, force:false, cycle:false }); $('#productscategory_list').trigger( 'goto', [middle-3] ); }); Alors que l'ancien est comme ceci: var pc_serialScrollNbImagesDisplayed; var pc_serialScrollNbImages; var pc_serialScrollActualImagesIndex; function pc_serialScrollFixLock(event, targeted, scrolled, items, position){ $('#productscategory_scroll_left').css('cursor', position == 0 ? 'default' : 'pointer').fadeTo(500, position == 0 ? 0.2 : 1); $('#productscategory_scroll_right').css('cursor', position + serialScrollNbImagesDisplayed == serialScrollNbImages ? 'default' : 'pointer').fadeTo(500, position + serialScrollNbImagesDisplayed == serialScrollNbImages ? 0.2 : 1); return true; } $(document).ready(function(){ //init the serialScroll for thumbs pc_serialScrollNbImages = $('#productscategory_list li').length; pc_serialScrollNbImagesDisplayed = 5; pc_serialScrollActualImagesIndex = 0; $('#productscategory_list').serialScroll({ items:'li', prev:'a#productscategory_scroll_left', next:'a#productscategory_scroll_right', axis:'x', offset:0, stop:true, onBefore:pc_serialScrollFixLock, duration:300, step: 1, lock: false, force:false, cycle:false }); $('#productscategory_list').trigger( 'goto', [middle-3] ); }); Link to comment Share on other sites More sharing options...
Julien Breux Posted August 21, 2009 Share Posted August 21, 2009 Pourquoi n'essayez-vous pas avec l'ancien ? Link to comment Share on other sites More sharing options...
minirj01 Posted August 21, 2009 Share Posted August 21, 2009 ""Est-ce que vous pourriez vérifiez?""Bonjour, idem la scroll bar de l'encart Dans la même catégorie ne fonctionne pas sur ma version 1.2.1 finale. Link to comment Share on other sites More sharing options...
tonito Posted August 21, 2009 Author Share Posted August 21, 2009 Oui, merci, avec l'ancien, tout fonctionne et mon site est réparé. Merci minirj01 d'avoir testé. Le problème est donc bien avec le plugin "productcategory" de la version 1.2.10. Je reporte le bug. Link to comment Share on other sites More sharing options...
diamond204 Posted August 24, 2009 Share Posted August 24, 2009 For all with this issue you can copy the old version of the module from 1.2.0.8 over the one from 1.2.1 to fix for now Link to comment Share on other sites More sharing options...
Julien Breux Posted August 24, 2009 Share Posted August 24, 2009 Yearh ! View my reply on top, i'v same opi' Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now