mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-16 14:13:55 +00:00
#8374: Making link a button
This commit is contained in:
parent
28b9a8323d
commit
dd09acffbd
2 changed files with 9 additions and 1 deletions
|
@ -20,6 +20,14 @@
|
||||||
left: 0;
|
left: 0;
|
||||||
text-shadow: 0 0 5px #f6f6f6;
|
text-shadow: 0 0 5px #f6f6f6;
|
||||||
font-weight: bold;
|
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 {
|
.wall-item-body {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
|
@ -45,7 +45,7 @@ function addHeightToggleHandler($item) {
|
||||||
var toggleId = "wall-item-body-toggle-" + itemId;
|
var toggleId = "wall-item-body-toggle-" + itemId;
|
||||||
|
|
||||||
$item.wrap('<div id="' + wrapperId + '" class="wall-item-body-wrapper"></div>');
|
$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");
|
$item.addClass("limitable limit-height");
|
||||||
|
|
||||||
var $toggle = $("#" + toggleId);
|
var $toggle = $("#" + toggleId);
|
||||||
|
|
Loading…
Reference in a new issue