diff options
author | Friendika <info@friendika.com> | 2011-03-17 15:26:45 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-03-17 15:26:45 -0700 |
commit | a5d5ae5efaa59abc6fc8888ccab303187a7a04ac (patch) | |
tree | 15d0f058ec959dd5cdfce0e8d0ed815ade2fa829 /view/sv/jot-header.tpl | |
parent | 0bce69fe9c0d9d66e6242c5673cf8c9bf6564d0b (diff) | |
download | volse-hubzilla-a5d5ae5efaa59abc6fc8888ccab303187a7a04ac.tar.gz volse-hubzilla-a5d5ae5efaa59abc6fc8888ccab303187a7a04ac.tar.bz2 volse-hubzilla-a5d5ae5efaa59abc6fc8888ccab303187a7a04ac.zip |
updated swedish templates
Diffstat (limited to 'view/sv/jot-header.tpl')
-rw-r--r-- | view/sv/jot-header.tpl | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/view/sv/jot-header.tpl b/view/sv/jot-header.tpl index fe818410e..b6e156324 100644 --- a/view/sv/jot-header.tpl +++ b/view/sv/jot-header.tpl @@ -104,6 +104,28 @@ tinyMCE.init({ } } + + function jotGetVideo() { + reply = prompt("Please enter a YouTube link:"); + if(reply && reply.length) { + tinyMCE.execCommand('mceInsertRawHTML',false,'[youtube]' + reply + '[/youtube]'); + } + } + + 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) { @@ -111,6 +133,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"); |