aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-03-16 19:36:59 -0700
committerFriendika <info@friendika.com>2011-03-16 19:36:59 -0700
commit3f432a7b82480dd985dbc2a67ae23cfc1ed258c6 (patch)
tree1fc92a535b189b0283273ff97517c74e4d79b20d /view
parente2ea341094c53e78ae7473a83d2b6c85b1cde4eb (diff)
downloadvolse-hubzilla-3f432a7b82480dd985dbc2a67ae23cfc1ed258c6.tar.gz
volse-hubzilla-3f432a7b82480dd985dbc2a67ae23cfc1ed258c6.tar.bz2
volse-hubzilla-3f432a7b82480dd985dbc2a67ae23cfc1ed258c6.zip
share,retweet,relay,forward, whatever
Diffstat (limited to 'view')
-rw-r--r--view/de/jot-header.tpl10
-rw-r--r--view/en/jot-header.tpl8
-rw-r--r--view/fr/jot-header.tpl9
-rw-r--r--view/it/jot-header.tpl9
-rw-r--r--view/like.tpl1
-rw-r--r--view/like_noshare.tpl5
-rw-r--r--view/theme/duepuntozero/style.css4
-rw-r--r--view/theme/loozah/style.css4
8 files changed, 50 insertions, 0 deletions
diff --git a/view/de/jot-header.tpl b/view/de/jot-header.tpl
index 58403f1ba..25d28c3a7 100644
--- a/view/de/jot-header.tpl
+++ b/view/de/jot-header.tpl
@@ -111,6 +111,16 @@ tinyMCE.init({
}
}
+ function jotShare(id) {
+ $('#like-rotator-' + id).show();
+ $.get('share/' + id, function(data) {
+ tinyMCE.execCommand('mceInsertRawHTML',false,data);
+ $('#like-rotator-' + id).hide();
+ $(window).scrollTop(0);
+ });
+ }
+
+
function linkdropper(event) {
var linkFound = event.dataTransfer.types.contains("text/uri-list");
diff --git a/view/en/jot-header.tpl b/view/en/jot-header.tpl
index fe818410e..20f84b851 100644
--- a/view/en/jot-header.tpl
+++ b/view/en/jot-header.tpl
@@ -111,6 +111,14 @@ tinyMCE.init({
}
}
+ function jotShare(id) {
+ $('#like-rotator-' + id).show();
+ $.get('share/' + id, function(data) {
+ tinyMCE.execCommand('mceInsertRawHTML',false,data);
+ $('#like-rotator-' + id).hide();
+ $(window).scrollTop(0);
+ });
+ }
function linkdropper(event) {
var linkFound = event.dataTransfer.types.contains("text/uri-list");
diff --git a/view/fr/jot-header.tpl b/view/fr/jot-header.tpl
index ff7e543a5..a4c5f42a4 100644
--- a/view/fr/jot-header.tpl
+++ b/view/fr/jot-header.tpl
@@ -110,6 +110,15 @@ tinyMCE.init({
}
}
+ function jotShare(id) {
+ $('#like-rotator-' + id).show();
+ $.get('share/' + id, function(data) {
+ tinyMCE.execCommand('mceInsertRawHTML',false,data);
+ $('#like-rotator-' + id).hide();
+ $(window).scrollTop(0);
+ });
+ }
+
function linkdropper(event) {
var linkFound = event.dataTransfer.types.contains("text/uri-list");
diff --git a/view/it/jot-header.tpl b/view/it/jot-header.tpl
index 117cd1651..ff28def61 100644
--- a/view/it/jot-header.tpl
+++ b/view/it/jot-header.tpl
@@ -111,6 +111,15 @@ tinyMCE.init({
}
}
+ function jotShare(id) {
+ $('#like-rotator-' + id).show();
+ $.get('share/' + id, function(data) {
+ tinyMCE.execCommand('mceInsertRawHTML',false,data);
+ $('#like-rotator-' + id).hide();
+ $(window).scrollTop(0);
+ });
+ }
+
function linkdropper(event) {
var linkFound = event.dataTransfer.types.contains("text/uri-list");
diff --git a/view/like.tpl b/view/like.tpl
index e36a624a4..4f530407e 100644
--- a/view/like.tpl
+++ b/view/like.tpl
@@ -1,5 +1,6 @@
<div class="wall-item-like-buttons" id="wall-item-like-buttons-$id">
<img src="images/like.gif" alt="$likethis" title="$likethis" onclick="dolike($id,'like');" />
<img src="images/dislike.gif" alt="$nolike" title="$nolike" onclick="dolike($id,'dislike');" />
+ <img src="images/share.gif" alt="$share" title="$share" class="wall-item-share-buttons" onclick="jotShare($id);" />
<img id="like-rotator-$id" class="like-rotator" src="images/rotator.gif" alt="$wait" title="$wait" style="display: none;" />
</div>
diff --git a/view/like_noshare.tpl b/view/like_noshare.tpl
new file mode 100644
index 000000000..e36a624a4
--- /dev/null
+++ b/view/like_noshare.tpl
@@ -0,0 +1,5 @@
+<div class="wall-item-like-buttons" id="wall-item-like-buttons-$id">
+ <img src="images/like.gif" alt="$likethis" title="$likethis" onclick="dolike($id,'like');" />
+ <img src="images/dislike.gif" alt="$nolike" title="$nolike" onclick="dolike($id,'dislike');" />
+ <img id="like-rotator-$id" class="like-rotator" src="images/rotator.gif" alt="$wait" title="$wait" style="display: none;" />
+ </div>
diff --git a/view/theme/duepuntozero/style.css b/view/theme/duepuntozero/style.css
index 54a522881..e44ab80c2 100644
--- a/view/theme/duepuntozero/style.css
+++ b/view/theme/duepuntozero/style.css
@@ -921,6 +921,10 @@ input#dfrn-url {
cursor: pointer;
}
+.wall-item-share-buttons {
+ margin-left: 5px;
+}
+
.wall-item-links-wrapper {
float: left;
}
diff --git a/view/theme/loozah/style.css b/view/theme/loozah/style.css
index f1de801cb..13c2dda27 100644
--- a/view/theme/loozah/style.css
+++ b/view/theme/loozah/style.css
@@ -993,6 +993,10 @@ input#dfrn-url {
border-right: 2px solid #fff;
}
+.wall-item-share-buttons {
+ margin-left: 5px;
+}
+
.wall-item-links-wrapper {
float: left;
}