From 7a6665b5cfb35daf3cb6ad13db00a19e89f8c8b8 Mon Sep 17 00:00:00 2001 From: Mike Macgirvin Date: Mon, 26 Jul 2010 17:01:37 -0700 Subject: item deletion and hover images --- view/contact_edit.tpl | 2 +- view/head.tpl | 18 +++++++++++++----- view/style.css | 11 ++++++++--- view/wall_item.tpl | 2 +- view/wall_item_drop.tpl | 2 +- 5 files changed, 24 insertions(+), 11 deletions(-) (limited to 'view') 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 @@
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')); + } + + + + + + 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 @@
$name
$ago
-$drop
$body
+$drop
$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 @@ -
Delete
+
Delete
-- cgit v1.2.3