]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/frost-mobile/js/main.js
bug fix #1135, show more is usable again
[friendica.git] / view / theme / frost-mobile / js / main.js
index 1b63a489d69243ef445af8e3296cdb0aa5e7df7a..07d0c52b36d030787421f3862efade04123f20b0 100644 (file)
@@ -48,7 +48,7 @@
        $(function() {
                $.ajaxSetup({cache: false});
 
-               collapseHeight();
+               //collapseHeight();
 
                /* setup tooltips *//*
                $("a,.tt").each(function(){
                        elemName = elems + ' ' + elemName;
                }
                $(elemName).each(function() {
-                       if($(this).height() > 350) {
-                               $('html').height($('html').height());
-                               $(this).divgrow({ initialHeight: 300, showBrackets: false, speed: 0 });
-                               $(this).addClass('divmore');
-                               $('html').height('auto');
-                       }
+                       $('html').height($('html').height());
+                       $(this).readmore({maxheight:350 , moreLink:'<a href="#" class="showmore">+ Show more</a>', lessLink:'<a href="#" class="showmore">+ Show less</a>'});
+                       $(this).addClass('divmore');
+                       $('html').height('auto');
                });
        }