]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/frio/js/theme.js
Merge pull request #4877 from fabrixxm/dev/followup-pr4861
[friendica.git] / view / theme / frio / js / theme.js
index aa6db99c15daf250bc66dfd7d3b33ebbecdf880f..a8787a6eb5dced342fee554f28e0c3f198a75980 100644 (file)
@@ -206,19 +206,6 @@ $(document).ready(function(){
                $("#topbar-second > .container > #tabmenu").append(newText);
        }
 
-       if( $(".global-content-wrapper").length) {
-               // get the heading element
-               var heading = $(".global-content-wrapper > h3").first();
-               // get the text of the heading
-               var headingContent = heading.text();
-               // create a new element with the content of the heading
-               var newText = '<h4 class="heading">'+headingContent+'</h4>';
-               // remove the old heading element
-               heading.remove(),
-               // 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, .dropdown-head .dropdown-menu li button', function(){
@@ -765,6 +752,7 @@ function doLikeAction(ident, verb) {
        $.get('like/' + ident.toString() + '?verb=' + verb, NavUpdate );
        liking = 1;
        force_update = true;
+       update_item = ident.toString();
 }
 
 // Decodes a hexadecimally encoded binary string