diff options
author | Tobias Diekershoff <tobias.diekershoff@gmx.net> | 2011-03-17 07:08:48 +0100 |
---|---|---|
committer | Tobias Diekershoff <tobias.diekershoff@gmx.net> | 2011-03-17 07:08:48 +0100 |
commit | f4f5095e19badcc85453182b86bff97f57228257 (patch) | |
tree | af391e8f809c3ab7ae183c72a364ba09fd16702e /view/fr/jot-header.tpl | |
parent | 0c16d033efd4ee878ab94318e7980d373ad3994d (diff) | |
parent | b3050d3bc8fc812f0579982e1c866ab07499e0a8 (diff) | |
download | volse-hubzilla-f4f5095e19badcc85453182b86bff97f57228257.tar.gz volse-hubzilla-f4f5095e19badcc85453182b86bff97f57228257.tar.bz2 volse-hubzilla-f4f5095e19badcc85453182b86bff97f57228257.zip |
Merge branch 'master' of git://github.com/friendika/friendika
Diffstat (limited to 'view/fr/jot-header.tpl')
-rw-r--r-- | view/fr/jot-header.tpl | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/view/fr/jot-header.tpl b/view/fr/jot-header.tpl index ff7e543a5..b1b6dacf0 100644 --- a/view/fr/jot-header.tpl +++ b/view/fr/jot-header.tpl @@ -103,6 +103,20 @@ tinyMCE.init({ } } + function jotVideoURL() { + reply = prompt("Please enter a video(.ogg) link/URL:"); + if(reply && reply.length) { + tinyMCE.execCommand('mceInsertRawHTML',false,'[video]' + reply + '[/video]'); + } + } + + function jotAudioURL() { + reply = prompt("Please enter an audio(.ogg) link/URL:"); + if(reply && reply.length) { + tinyMCE.execCommand('mceInsertRawHTML',false,'[audio]' + reply + '[/audio]'); + } + } + function jotGetLocation() { reply = prompt("Where are you right now?", $('#jot-location').val()); if(reply && reply.length) { @@ -110,6 +124,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"); |