Making only final links click-able

jQuery based dynamic fly-out menu.
Post Reply
norman
Site Admin
Posts: 1252
Joined: Sat Feb 07, 2004 9:55 pm

Making only final links click-able

Post by norman »

To make only the final links click-able, do the following:

Go to Design / Library / Layouts / NorList Menu / NorList Support Code.

Look for the line:

Code: Select all

		$("#norlist").menu();
Immediately below it paste in:

Code: Select all

		$('#norlist li').each(function(){if($(this).has('ul')[0])$('a:first',this).click(function(e){e.preventDefault();})});
Note that this will make it difficult for customers to get to Sections that contain both Products and sub-Sections.
Norman
Post Reply