aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2011-12-01 16:33:53 -0800
committerfriendica <info@friendica.com>2011-12-01 16:33:53 -0800
commitac3df5fece6e1f5a6eab3a2694b15bcf45ed31e4 (patch)
tree204e91c02902a0a3c65cff9fc40808c7d516de75 /view
parent29b5d398fd4c80321fe0882bab9cc11455c75784 (diff)
downloadvolse-hubzilla-ac3df5fece6e1f5a6eab3a2694b15bcf45ed31e4.tar.gz
volse-hubzilla-ac3df5fece6e1f5a6eab3a2694b15bcf45ed31e4.tar.bz2
volse-hubzilla-ac3df5fece6e1f5a6eab3a2694b15bcf45ed31e4.zip
dynamic group edit buttons
Diffstat (limited to 'view')
-rw-r--r--view/theme/duepuntozero/group_side.tpl2
-rw-r--r--view/theme/duepuntozero/style.css6
-rw-r--r--view/theme/duepuntozero/theme.php24
3 files changed, 30 insertions, 2 deletions
diff --git a/view/theme/duepuntozero/group_side.tpl b/view/theme/duepuntozero/group_side.tpl
index 8c4464560..0353b1d2c 100644
--- a/view/theme/duepuntozero/group_side.tpl
+++ b/view/theme/duepuntozero/group_side.tpl
@@ -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>
diff --git a/view/theme/duepuntozero/style.css b/view/theme/duepuntozero/style.css
index 0f9999c3e..bc6cc8450 100644
--- a/view/theme/duepuntozero/style.css
+++ b/view/theme/duepuntozero/style.css
@@ -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');
diff --git a/view/theme/duepuntozero/theme.php b/view/theme/duepuntozero/theme.php
index ebced7b9b..3e55b658a 100644
--- a/view/theme/duepuntozero/theme.php
+++ b/view/theme/duepuntozero/theme.php
@@ -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;