Explorar o código

fix mor link height

Tessier %!s(int64=3) %!d(string=hai) anos
pai
achega
f425cb2abc
Modificáronse 1 ficheiros con 13 adicións e 0 borrados
  1. 13 0
      web/themes/custom/popsu_colloque/js/script.js

+ 13 - 0
web/themes/custom/popsu_colloque/js/script.js

@@ -323,7 +323,20 @@
   }
 
   function hidden_morelinkMoment(){
+
+    TxtMomentHeght = $('#moments .__content').height();
+    limitHeight = 16 * 8;
+
+    console.log(TxtMomentHeght);
+
     $morelink = $('#moments .more_link');
+
+  if(TxtMomentHeght <= limitHeight){
+    console.log("salut");
+    $morelink.addClass('is_active');
+
+  }
+
     
     $morelink.click(function(e) {
       e.preventDefault();