mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-11 01:24:27 +02:00
frio: restructure jot modal and make jot modal work on mobile
This commit is contained in:
parent
75f838c53b
commit
571a4fed99
5 changed files with 119 additions and 100 deletions
|
@ -206,6 +206,16 @@ $(document).ready(function(){
|
|||
// put the new element to the second nav bar
|
||||
$("#topbar-second > .container > #tabmenu").append(newText);
|
||||
}
|
||||
|
||||
// Dropdown menus with the class "dropdown-head" will display the active tab
|
||||
// as button text
|
||||
$("body").on('click', '.dropdown-head .dropdown-menu li a', function(){
|
||||
$(this).closest(".dropdown").find('.btn').html($(this).text() + ' <span class="caret"></span>');
|
||||
$(this).closest(".dropdown").find('.btn').val($(this).data('value'));
|
||||
$(this).closest("ul").children("li").show();
|
||||
$(this).parent("li").hide();
|
||||
});
|
||||
|
||||
});
|
||||
//function commentOpenUI(obj, id) {
|
||||
// $(document).unbind( "click.commentOpen", handler );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue