Skip to content

Commit

Permalink
Merge pull request midgetspy#241 from thezoggy/menu-fix
Browse files Browse the repository at this point in the history
Fixed the drop down state being 'stuck' if you were to cancel out of alert
  • Loading branch information
midgetspy committed Dec 3, 2011
2 parents 343378d + e8103bf commit 3c8df49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/interfaces/default/inc_top.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,11 @@ table.tablesorter thead tr .headerSortDown { background-image: url("$sbRoot/imag
\$("#NAV$topmenu").addClass("current");

\$("a.confirm").bind("click",function(e) {
\$('#MainMenu.sf-menu').hideSuperfishUl();
e.preventDefault();
var target = \$( this ).attr('href');
if ( confirm("Are you sure you want to " + \$(this).text() + "?") )
location.href = target;
\$('#MainMenu.sf-menu').hideSuperfishUl();
return false;
});

Expand Down

0 comments on commit 3c8df49

Please sign in to comment.