Jump to content

Open/Close Layer - Module Layer


Recommended Posts

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 !

45419_8DFDgwo7PtOmq1GXcNY2_t

Link to comment
Share on other sites

  • 1 month later...
  • 2 weeks later...

The answer in the java file: blocklayered.js

Find 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 image


It 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 - ok


Please who can help with that I will so appriciated!

Thanks

Link to comment
Share on other sites

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

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

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 know

This way will work but not in IE which is important to me

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...