remove dollar sign
This commit is contained in:
parent
c9a5038a7a
commit
5bc69ccc70
1 changed files with 4 additions and 4 deletions
|
@ -81,22 +81,22 @@
|
||||||
}
|
}
|
||||||
$('a[rel^=#]').click(function(e){
|
$('a[rel^=#]').click(function(e){
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
var $parent = $(this).parent();
|
var parent = $(this).parent();
|
||||||
var isSelected = (last_popup_button && $parent.attr('id') == last_popup_button.attr('id'));
|
var isSelected = (last_popup_button && parent.attr('id') == last_popup_button.attr('id'));
|
||||||
close_last_popup_menu();
|
close_last_popup_menu();
|
||||||
if(isSelected) return false;
|
if(isSelected) return false;
|
||||||
menu = $( $(this).attr('rel') );
|
menu = $( $(this).attr('rel') );
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
if (menu.attr('popup')=="false") return false;
|
if (menu.attr('popup')=="false") return false;
|
||||||
$parent.toggleClass("selected");
|
parent.toggleClass("selected");
|
||||||
menu.toggle();
|
menu.toggle();
|
||||||
if (menu.css("display") == "none") {
|
if (menu.css("display") == "none") {
|
||||||
last_popup_menu = null;
|
last_popup_menu = null;
|
||||||
last_popup_button = null;
|
last_popup_button = null;
|
||||||
} else {
|
} else {
|
||||||
last_popup_menu = menu;
|
last_popup_menu = menu;
|
||||||
last_popup_button = $parent;
|
last_popup_button = parent;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue