alexislevrai Posted May 18, 2011 Share Posted May 18, 2011 Hi guys, So I try to custom the new Layer module. I've got a little problem with the arrow for the open/close function.I have modify the arrow when is open (line 68 on blocklayered.tpl) with a small grey triangle in png. But when I close the box and after when I re-open it, I've got an arrow....Where can I find this arrow to modify it ?Thanks for your help.Presta team ROCK ! Link to comment Share on other sites More sharing options...
sakrafanas Posted June 25, 2011 Share Posted June 25, 2011 i'm also looking for answer, but without results... Link to comment Share on other sites More sharing options...
motya Posted July 9, 2011 Share Posted July 9, 2011 The answer in the java file: blocklayered.jsFind the code:function openCloseFilter() and replace the hole function to: function openCloseFilter() { $('#layered_form span.layered_close a').live('click', function(e) { if ($(this).html() == pic_left ) { $('#'+$(this).attr('rel')).show(); $(this).html(pic_down); } else { $('#'+$(this).attr('rel')).hide(); $(this).html(pic_left); } e.preventDefault(); }); } Then at the very top of that file paste the code below: var pic_left = 'image'; var pic_down = 'image'; Isteat of image use the with a patch to the imageIt works! But! Everywhere except IE!?? By some reason in IE when you close filter it do not let you open it back. In Opera, Mozzilla - okPlease who can help with that I will so appriciated!Thanks Link to comment Share on other sites More sharing options...
alexislevrai Posted July 10, 2011 Author Share Posted July 10, 2011 Hi thanks for your help.I've got a little problem ...I use this code : var pic_left = ''; var pic_down = ''; function openCloseFilter() { $('#layered_form span.layered_close a').live('click', function(e) { if ($(this).html() == pic_left ) { $('#'+$(this).attr('rel')).show(); $(this).html(pic_down); } else { $('#'+$(this).attr('rel')).hide(); $(this).html(pic_left); } e.preventDefault(); }); } Image are display, all it's okay but when I click on the pic_left nothing ... Any idea ?You can try here :http://www.sqwear.fr/fr/7-robes Link to comment Share on other sites More sharing options...
motya Posted July 10, 2011 Share Posted July 10, 2011 Hi,same things happen with me but as I said it's only in Internet explorer. I don't know why it's works in Opera, Mozilla but not in IE.Can somebody help use who understand the jave well.I have notice that it is something with a strings <> because if you remove that and let's say write there "test" with no qotes it will work.I have no clue I have try for to days but with java not so strong as I wish...Will wait for some one answer.Thanks ! Link to comment Share on other sites More sharing options...
alexislevrai Posted July 10, 2011 Author Share Posted July 10, 2011 On my computer he don' work on Firefox, Chrome and Safari. I'm on Mac.But like you, when I try with "Unroll" or any word. It work perfectly. Link to comment Share on other sites More sharing options...
motya Posted July 10, 2011 Share Posted July 10, 2011 var pic_left = ''; var pic_down = ''; For you it will work if you isolate quots like: =\" and at the end \"> Please try and let me knowThis way will work but not in IE which is important to me Link to comment Share on other sites More sharing options...
alexislevrai Posted July 10, 2011 Author Share Posted July 10, 2011 It work perfectly like this ! Thanks Link to comment Share on other sites More sharing options...
motya Posted July 10, 2011 Share Posted July 10, 2011 Try this way it works for me but not in IE which is important for mesee attachment Link to comment Share on other sites More sharing options...
motya Posted July 10, 2011 Share Posted July 10, 2011 It work perfectly like this ! Thanks Can you test it in IE 8 ?????? Link to comment Share on other sites More sharing options...
alexislevrai Posted July 10, 2011 Author Share Posted July 10, 2011 Owww no, but I don't have many user on IE so ... 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