I've done something similar in order to reload the correct tab if the
user refreshes or bookmarks:
---
$nav = $(".mainNav ul").tabs({
// set url hash to selected tab
select: function(event, ui){
document.location.hash = $(ui.panel).attr("id");
Okay, figured it out:
$nav = $(".mainNav ul").tabs({
// set url hash to selected tab
select: function(event, ui){
document.location.hash = "t" + $(ui.panel).attr("id");
}
});
// go to tab set in url
Doug,
I looked at source codes for clickmenu & contextmenu to figure out the
same thing, and the below variation works for me.
1) Add this to your openMe function:
$(document.body).mousedown(function(e){
if ($(e.target).parents("#mymenu").length == 0) closeMe();
3 matches
Mail list logo