Skip to:

Member directories js/html question

  • This is probably best directed to Andy, but I thought it may be more appropriate to ask here if another contributer knows.

    I’m taking apart the directory templates at the moment, and I notice that the four directories use a lot of specific ID tags more than generic classes (e.g. groups-directory-search), even though the structure is pretty much the same for all directories.

    Although this doesn’t really apply to the CSS runles, there is a javascript event for each directory’s search function, letter searching, etc. When I look at it I can see it being done with one event (e.g. one search event handler) for all searches.

    I wanted to know if there was a specific reason for the use of seperate js events for each directory? This isn’t exactly a huge improvement to performance or anything, but if one jquery event can cater to all four directories, I’m just curious as to why it doesn’t?

Viewing 2 replies - 1 through 2 (of 2 total)

  • Mike Pratt


    Marcus – I agree with you, the markup seems a bit too specialized this time and I have not figured out why Andy went the extra mile. In addition, the directory search functions are have a few bugs, in my experience. About to post this now.

    I’ll wait for Andy to get back to us on this. If there’s no real good reason, I might try putting it all together and making the appropriate modifications to the template. I don’t think it would be very hard either.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Member directories js/html question’ is closed to new replies.
Skip to toolbar