diff options
author | Friendika <info@friendika.com> | 2011-10-24 15:47:17 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-10-24 15:47:17 -0700 |
commit | 3b6b0eaa8ba8f59c70f66a6c92888f9ff2d5b41b (patch) | |
tree | 938348de7342a4730e4fa6f36090ae0742e86127 /view | |
parent | f48fd5aa1651cdc801473e9d24c1736304533e63 (diff) | |
download | volse-hubzilla-3b6b0eaa8ba8f59c70f66a6c92888f9ff2d5b41b.tar.gz volse-hubzilla-3b6b0eaa8ba8f59c70f66a6c92888f9ff2d5b41b.tar.bz2 volse-hubzilla-3b6b0eaa8ba8f59c70f66a6c92888f9ff2d5b41b.zip |
social tag - add UI
Diffstat (limited to 'view')
-rw-r--r-- | view/jot-header.tpl | 13 | ||||
-rw-r--r-- | view/theme/duepuntozero/style.css | 5 | ||||
-rw-r--r-- | view/theme/duepuntozero/wall_item.tpl | 1 | ||||
-rw-r--r-- | view/wall_item.tpl | 1 |
4 files changed, 20 insertions, 0 deletions
diff --git a/view/jot-header.tpl b/view/jot-header.tpl index 22bd0aa5b..b06712407 100644 --- a/view/jot-header.tpl +++ b/view/jot-header.tpl @@ -214,6 +214,19 @@ function initEditor(cb){ } } + function itemTag(id) { + $('#like-rotator-' + id).show(); + reply = prompt("$term"); + if(reply && reply.length) { + reply.replace('#',''); + if(reply.length) { + $.get('tagger/' + id + '?term=' + reply, function(data) { + $('#like-rotator-' + id).hide(); + }); + } + } + } + function jotClearLocation() { $('#jot-coord').val(''); $('#profile-nolocation-wrapper').hide(); diff --git a/view/theme/duepuntozero/style.css b/view/theme/duepuntozero/style.css index 6f452cebc..378e0da1e 100644 --- a/view/theme/duepuntozero/style.css +++ b/view/theme/duepuntozero/style.css @@ -958,6 +958,11 @@ input#dfrn-url { margin-left: 10px; float: left; } +.tag-item { + margin-left: 10px; + float: left; +} + .wall-item-links-wrapper { float: left; diff --git a/view/theme/duepuntozero/wall_item.tpl b/view/theme/duepuntozero/wall_item.tpl index d264d3999..3a4a49729 100644 --- a/view/theme/duepuntozero/wall_item.tpl +++ b/view/theme/duepuntozero/wall_item.tpl @@ -49,6 +49,7 @@ {{ if $star }} <a href="#" id="starred-$id" onclick="dostar($id); return false;" class="star-item icon $isstarred" title="$star.toggle"></a> + <a href="#" id="tagger-$id" onclick="itemTag($id); return false;" class="tag-item icon tagged" title="$star.tagger"></a> {{ endif }} <div class="wall-item-delete-wrapper" id="wall-item-delete-wrapper-$id" > diff --git a/view/wall_item.tpl b/view/wall_item.tpl index cec5e5404..ef822750a 100644 --- a/view/wall_item.tpl +++ b/view/wall_item.tpl @@ -40,6 +40,7 @@ {{ if $star }} <a href="#" id="star-$id" onclick="dostar($id); return false;" class="$star.classdo" title="$star.do">$star.do</a> <a href="#" id="unstar-$id" onclick="dostar($id); return false;" class="$star.classundo" title="$star.undo">$star.undo</a> + <a href="#" id="tagger-$id" onclick="itemTag($id); return false;" class="$star.classtagger" title="$star.tagger">$star.tagger</a> {{ endif }} {{ if $vote }} |