Thanks for this excellent module!

If I set this for sf-Touchscreen settings:
"Opening the parent menu item link on the second tap"

And this for Accordion settings:
"Use parent menu items as buttons"

Or any combination of the two, I can't get it to open the parent link on the second tap (can't access that link at all). Tapping the parent a second time only closes it's child menu. I have to choose "cloned parent links to the top of sub-menus" to access that parent link. Is this known to work?

Superfish 7.x-1.9+30-dev (May-01)
master branch of SF library
jQuery Update 7.x-2.4 using 1.10 or 1.9, same result

Comments

mehrpadin’s picture

Category: Bug report » Support request

Hey there,

Thanks for this, not a bug though, I'd say lack of good documentation :) I'll try to add a tip using #states there, however 2nd option which is the default should explain it: "Use parent menu items as buttons, add cloned parent links to sub-menus as well." right?

echoz’s picture

Thanks. Do you mean that "Use parent menu items as buttons", means "buttons" is not meant to be a link (the parent link), but only the toggle for the child menu? If that is true, than with Accordion, there is no way to have sf-Touchscreen's "first click on a parent hyperlink shows its children and the second click opens the hyperlink"?

bohemier’s picture

I used to be be able to make this work with 7.x-1.9 / The jQuery Superfish plug-in version 1.4.8. Now I can't with 7.x-1.9+33-dev / master branch of SF library / jQuery Update 7.x-2.4 using 1.10 or 1.9.

Trying to figure out why...

Metasequoia’s picture

Any progress on this? I would love to have the functionality "first click on a parent hyperlink shows its children and the second click opens the hyperlink".

Tsjippy’s picture

I have the same problem!

Any solution already?

truyenle’s picture

same issue, can't open the parent on the second tap

jberg1’s picture

Having same issue. Using Superfish 7.x -2.0
Any work around? I'd rather not have a clone of the parent item in the sub-menu

cmedina’s picture

I have the same problem!

I am using Superfish 7.x -2.0 and JQuery Update 7.x-2.7 (jQuery 1.10.2 and jQuery UI 1.10.2)

Any solution already?

lubwn’s picture

Stumbled across the very same issue.

I wanted to open submenu on first click and redirect to page on second click, I came with following solution:

// helper function
function checkValue(value,arr){
	var status = 'Not exist';
	 
	for(var i=0; i<arr.length; i++){
		var name = arr[i];
		if(name == value){
		  status = 'Exist';
		  break;
		}
	}

	return status;
}

// make an array
var menu_links_arr = [];

$('#block-superfish-1 li a.menuparent').click(function(){
										 
	if (checkValue($(this).attr("id"), menu_links_arr) == 'Exist') {
		console.log("second click");
		// redirects automatically
	}
	else {
		// first click, do not redirect
		menu_links_arr.push($(this).attr("id"));
		return false;
	}
						
});

Just replace ID in jquery selector with yours and it should work.

DD 85’s picture

Category: Support request » Bug report

In my opinion, this is a mistake that still needs to be corrected.