#8374: Making link a button
authorChristian Wiwie <jonsnow@posteo.de>
Sat, 14 Mar 2020 21:58:25 +0000 (22:58 +0100)
committerChristian Wiwie <jonsnow@posteo.de>
Sat, 14 Mar 2020 21:58:25 +0000 (22:58 +0100)
showmore_dyn/showmore_dyn.css
showmore_dyn/showmore_dyn.js

index 76bb755..e351594 100644 (file)
     left: 0;
     text-shadow: 0 0 5px #f6f6f6;
     font-weight: bold;
+
+  background: none!important;
+  border: none;
+  padding: 0!important;
+  cursor: pointer;
+}
+.wall-item-body-toggle-text:hover {
+         text-decoration:underline;
 }
 .wall-item-body {
     position: relative;
index 4442da7..e03e34a 100644 (file)
@@ -45,7 +45,7 @@ function addHeightToggleHandler($item) {
        var toggleId = "wall-item-body-toggle-" + itemId;
 
        $item.wrap('<div id="' + wrapperId + '" class="wall-item-body-wrapper"></div>');
-       $("#" + wrapperId).append('<div class="wall-item-body-toggle" data-item-id="' + itemId + '" id="' + toggleId + '" ><a href="javascript:void(0)" class="wall-item-body-toggle-text">' + showmore_dyn_showmore_linktext + '</a></div>');
+       $("#" + wrapperId).append('<div class="wall-item-body-toggle" data-item-id="' + itemId + '" id="' + toggleId + '" ><button type="button" class="wall-item-body-toggle-text">' + showmore_dyn_showmore_linktext + '</button></div>');
        $item.addClass("limitable limit-height");
 
        var $toggle = $("#" + toggleId);