aboutsummaryrefslogtreecommitdiffstats
path: root/view/en/jot-header.tpl
diff options
context:
space:
mode:
Diffstat (limited to 'view/en/jot-header.tpl')
-rw-r--r--view/en/jot-header.tpl8
1 files changed, 8 insertions, 0 deletions
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");