aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-07-26 17:01:37 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-07-26 17:01:37 -0700
commit7a6665b5cfb35daf3cb6ad13db00a19e89f8c8b8 (patch)
tree4940d6403b78da48d144506ad628444bb36ccf46 /view
parent17808daf5e72f6ff22c182d334ab3651abda0302 (diff)
downloadvolse-hubzilla-7a6665b5cfb35daf3cb6ad13db00a19e89f8c8b8.tar.gz
volse-hubzilla-7a6665b5cfb35daf3cb6ad13db00a19e89f8c8b8.tar.bz2
volse-hubzilla-7a6665b5cfb35daf3cb6ad13db00a19e89f8c8b8.zip
item deletion and hover images
Diffstat (limited to 'view')
-rw-r--r--view/contact_edit.tpl2
-rw-r--r--view/head.tpl18
-rw-r--r--view/style.css11
-rw-r--r--view/wall_item.tpl2
-rw-r--r--view/wall_item_drop.tpl2
5 files changed, 24 insertions, 11 deletions
diff --git a/view/contact_edit.tpl b/view/contact_edit.tpl
index 26ee2ef5c..bfeb10717 100644
--- a/view/contact_edit.tpl
+++ b/view/contact_edit.tpl
@@ -17,7 +17,7 @@
<div id="contact-edit-links" >
<a href="contacts/$contact_id/block" id="contact-edit-block-link" ><img src="images/b_block.gif" alt="Block/Unblock contact" title="$block_text"/></a>
- <a href="contacts/$contact_id/drop" id="contact-edit-drop-link"><img src="images/b_drop.gif" alt="Delete contact" title="Delete contact"/></a>
+ <a href="contacts/$contact_id/drop" id="contact-edit-drop-link" onclick="return confirmDelete();" ><img src="images/b_drophide.gif" alt="Delete contact" title="Delete contact" onmouseover="imgbright(this);" onmouseout="imgdull(this);" /></a>
</div>
<div id="contact-edit-nav-end"></div>
</div>
diff --git a/view/head.tpl b/view/head.tpl
index 81ce1287f..2a6506da9 100644
--- a/view/head.tpl
+++ b/view/head.tpl
@@ -20,11 +20,6 @@
msie = $.browser.msie ;
NavUpdate();
-// $('.wall-item-delete-icon').hover(function() {
-// $(this).attr("src",$(this).attr("src").replace('hide',''));
-// },function() {
-// $(this).attr("src",$(this).attr("src").replace('','hide'));
-// });
});
@@ -79,5 +74,18 @@
return confirm("Delete this item?");
}
+ function imgbright(node) {
+ $(node).attr("src",$(node).attr("src").replace('hide','show'));
+ }
+
+ function imgdull(node) {
+ $(node).attr("src",$(node).attr("src").replace('show','hide'));
+ }
+
+
+
+
+
+
</script>
diff --git a/view/style.css b/view/style.css
index e3a2730a1..d0e7dd262 100644
--- a/view/style.css
+++ b/view/style.css
@@ -483,9 +483,13 @@ input#dfrn-url {
}
.wall-item-delete-wrapper {
- float: left;
- margin-top: 10px;
- margin-left: 50px;
+ float: right;
+ margin-top: 20px;
+ margin-right: 50px;
+}
+
+.wall-item-delete-end {
+ clear: both;
}
.wall-item-delete-icon {
@@ -506,6 +510,7 @@ input#dfrn-url {
}
.wall-item-body {
float: left;
+ width: 450px;
margin-top: 30px;
margin-left: 10px;
}
diff --git a/view/wall_item.tpl b/view/wall_item.tpl
index f27113409..87bf86a52 100644
--- a/view/wall_item.tpl
+++ b/view/wall_item.tpl
@@ -6,9 +6,9 @@
<div class="wall-item-wrapper" id="wall-item-wrapper-$id" >
<a href="$profile_url" title="View $name's profile" class="wall-item-name-link"><span class="wall-item-name" id="wall-item-name-$id" >$name</span></a>
<div class="wall-item-ago" id="wall-item-ago-$id">$ago</div>
-$drop
</div>
<div class="wall-item-body" id="wall-item-body-$id" >$body</div>
+$drop
<div class="wall-item-wrapper-end"></div>
<div class="wall-item-comment-separator"></div>
$comment
diff --git a/view/wall_item_drop.tpl b/view/wall_item_drop.tpl
index 46dfb870d..9ca1ec968 100644
--- a/view/wall_item_drop.tpl
+++ b/view/wall_item_drop.tpl
@@ -1 +1 @@
-<div class="wall-item-delete-wrapper" id="wall-item-delete-wrapper-$id" ><a href="item/drop/$id" onclick="return confirmDelete();" ><img src="images/b_drop.gif" alt="Delete" title="Delete" id="wall-item-delete-icon-$id" class="wall-item-delete-icon"></a></div>
+<div class="wall-item-delete-wrapper" id="wall-item-delete-wrapper-$id" ><a href="item/drop/$id" onclick="return confirmDelete();" ><img src="images/b_drophide.gif" alt="Delete" title="Delete" id="wall-item-delete-icon-$id" class="wall-item-delete-icon" onmouseover="imgbright(this);" onmouseout="imgdull(this);" ></a></div><div class="wall-item-delete-end"></div>