sforkowany z mirror/friendica
Merge branch 'Beanow-feature/collapse-menulink' into friendica/master
commit
3031457c36
|
@ -80,19 +80,23 @@
|
|||
}
|
||||
}
|
||||
$('a[rel^=#]').click(function(e){
|
||||
e.preventDefault();
|
||||
var parent = $(this).parent();
|
||||
var isSelected = (last_popup_button && parent.attr('id') == last_popup_button.attr('id'));
|
||||
close_last_popup_menu();
|
||||
if(isSelected) return false;
|
||||
menu = $( $(this).attr('rel') );
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
if (menu.attr('popup')=="false") return false;
|
||||
$(this).parent().toggleClass("selected");
|
||||
parent.toggleClass("selected");
|
||||
menu.toggle();
|
||||
if (menu.css("display") == "none") {
|
||||
last_popup_menu = null;
|
||||
last_popup_button = null;
|
||||
} else {
|
||||
last_popup_menu = menu;
|
||||
last_popup_button = $(this).parent();
|
||||
last_popup_button = parent;
|
||||
}
|
||||
return false;
|
||||
});
|
||||
|
|
Ładowanie…
Reference in New Issue