aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-07-25 22:51:45 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-07-25 22:51:45 -0700
commit9f81c3345b40d635a34f0448dd625b17f20508c3 (patch)
tree6f284d707b8d05fd6c16baf6c1a69aea7f8dfcc6 /view
parent52a2c7eb46ea3b9509e48f29eca6f1c398a85538 (diff)
downloadvolse-hubzilla-9f81c3345b40d635a34f0448dd625b17f20508c3.tar.gz
volse-hubzilla-9f81c3345b40d635a34f0448dd625b17f20508c3.tar.bz2
volse-hubzilla-9f81c3345b40d635a34f0448dd625b17f20508c3.zip
fixup of some nits with live update and remote comment display on profile page
Diffstat (limited to 'view')
-rw-r--r--view/comment_item.tpl2
-rw-r--r--view/head.tpl14
-rw-r--r--view/style.css11
-rw-r--r--view/wall_item.tpl3
-rw-r--r--view/wall_item_drop.tpl1
-rw-r--r--view/wallwall_item.tpl6
6 files changed, 31 insertions, 6 deletions
diff --git a/view/comment_item.tpl b/view/comment_item.tpl
index b91be5ab5..63737982e 100644
--- a/view/comment_item.tpl
+++ b/view/comment_item.tpl
@@ -2,7 +2,7 @@
<div class="comment-$wwedit-wrapper" id="comment-edit-wrapper-$id" style="display: block;">
<form class="comment-edit-form" id="comment-edit-form-$id" action="item" method="post" >
- <input type="hidden" name="type" value="wall-comment" />
+ <input type="hidden" name="type" value="$type" />
<input type="hidden" name="profile_uid" value="$profile_uid" />
<input type="hidden" name="parent" value="$parent" />
<input type="hidden" name="return" value="$return_path" />
diff --git a/view/head.tpl b/view/head.tpl
index d02f56c72..81ce1287f 100644
--- a/view/head.tpl
+++ b/view/head.tpl
@@ -19,6 +19,14 @@
$.ajaxSetup({cache: false});
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'));
+// });
+
+
});
function NavUpdate() {
@@ -57,7 +65,7 @@
$.get('update_' + src + '?msie=' + ((msie) ? 1 : 0),function(data) {
$('.wall-item-outside-wrapper',data).each(function() {
var ident = $(this).attr('id');
- if($('#' + ident).length == 0) {
+ if($('#' + ident).length == 0) {
$('#' + prev).after($(this));
}
else { $('#' + ident).replaceWith($(this)); }
@@ -67,5 +75,9 @@
}
+ function confirmDelete() {
+ return confirm("Delete this item?");
+ }
+
</script>
diff --git a/view/style.css b/view/style.css
index c6a9a82a6..e3a2730a1 100644
--- a/view/style.css
+++ b/view/style.css
@@ -482,6 +482,17 @@ input#dfrn-url {
font-size: 0.8em;
}
+.wall-item-delete-wrapper {
+ float: left;
+ margin-top: 10px;
+ margin-left: 50px;
+}
+
+.wall-item-delete-icon {
+ border: none;
+}
+
+
.wall-item-wrapper-end {
clear: both;
}
diff --git a/view/wall_item.tpl b/view/wall_item.tpl
index 72ee216d5..f27113409 100644
--- a/view/wall_item.tpl
+++ b/view/wall_item.tpl
@@ -6,8 +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>
-<span class="wall-item-body" id="wall-item-body-$id" >$body</span>
+<div class="wall-item-body" id="wall-item-body-$id" >$body</div>
<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
new file mode 100644
index 000000000..46dfb870d
--- /dev/null
+++ b/view/wall_item_drop.tpl
@@ -0,0 +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>
diff --git a/view/wallwall_item.tpl b/view/wallwall_item.tpl
index 94d0da4fc..f391df168 100644
--- a/view/wallwall_item.tpl
+++ b/view/wallwall_item.tpl
@@ -1,4 +1,4 @@
-<div class="wall-item-$indentoutside-wrapper" id="wall-item-outside-wrapper-$id" >
+<div class="wall-item-outside-wrapper$indent" id="wall-item-outside-wrapper-$id" >
<div class="wall-item-photo-wrapper" id="wall-item-ownerphoto-wrapper-$id" >
<a href="$owner_url" title="View $owner_name's profile" class="wall-item-photo-link" id="wall-item-ownerphoto-link-$id">
<img src="$owner_photo" class="wall-item-photo" id="wall-item-ownerphoto-$id" height="80" width="80" alt="$owner_name" /></a>
@@ -12,12 +12,12 @@
<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> to <a href="$owner_url" title="View $owner_name's profile" class="wall-item-name-link"><span class="wall-item-name" id="wall-item-ownername-$id">$owner_name</span></a> via Wall-To-Wall:<br />
<span class="wall-item-body" id="wall-item-body-$id" >$body</span>
<div class="wall-item-ago" id="wall-item-ago-$id">$ago</div>
-
+$drop
</div>
<div class="wall-item-wrapper-end"></div>
<div class="wall-item-comment-separator"></div>
$comment
</div>
-<div class="wall-item-$indentoutside-wrapper-end" ></div>
+<div class="wall-item-outside-wrapper-end$indent" ></div>