mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-17 04:15:15 +02:00
dynamic group edit buttons
This commit is contained in:
parent
29b5d398fd
commit
ac3df5fece
5 changed files with 32 additions and 3 deletions
|
@ -13,7 +13,7 @@
|
|||
/>
|
||||
{{ endif }}
|
||||
{{ if $group.edit }}
|
||||
<a class="groupsideedit" href="$group.edit.href"><span id="group-side-editicon-$group.id" class="icon small-pencil"></span></a>
|
||||
<a class="groupsideedit" href="$group.edit.href" title="$edittext"><span id="edit-sidebar-group-element-$group.id" class="group-edit-icon iconspacer small-pencil"></span></a>
|
||||
{{ endif }}
|
||||
<a id="sidebar-group-element-$group.id" class="sidebar-group-element {{ if $group.selected }}group-selected{{ endif }}" href="$group.href">$group.text</a>
|
||||
</li>
|
||||
|
|
|
@ -1792,7 +1792,7 @@ a.mail-list-link {
|
|||
list-style-type: none;
|
||||
}
|
||||
|
||||
#sidebar-group-list .icon {
|
||||
#sidebar-group-list .icon, #sidebar-group-list .iconspacer {
|
||||
display: inline-block;
|
||||
height: 12px;
|
||||
width: 12px;
|
||||
|
@ -2766,6 +2766,10 @@ aside input[type='text'] {
|
|||
/**
|
||||
* ICONS
|
||||
*/
|
||||
.iconspacer {
|
||||
display: block; width: 16px; height: 16px;
|
||||
}
|
||||
|
||||
.icon {
|
||||
display: block; width: 16px; height: 16px;
|
||||
background-image: url('../../../images/icons.png');
|
||||
|
|
|
@ -1,2 +1,26 @@
|
|||
<?php
|
||||
$a->theme_info = array();
|
||||
|
||||
$a->page['htmlhead'] .= <<< EOT
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
|
||||
$('.group-edit-icon').hover(
|
||||
function() {
|
||||
$(this).addClass('icon'); $(this).removeClass('iconspacer');},
|
||||
function() {
|
||||
$(this).removeClass('icon'); $(this).addClass('iconspacer');}
|
||||
);
|
||||
|
||||
$('.sidebar-group-element').hover(
|
||||
function() {
|
||||
id = $(this).attr('id');
|
||||
$('#edit-' + id).addClass('icon'); $('#edit-' + id).removeClass('iconspacer');},
|
||||
|
||||
function() {
|
||||
id = $(this).attr('id');
|
||||
$('#edit-' + id).removeClass('icon');$('#edit-' + id).addClass('iconspacer');}
|
||||
);
|
||||
});
|
||||
</script>
|
||||
EOT;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue