diff --git a/view/sv/jot-header.tpl b/view/sv/jot-header.tpl index fe818410e5..b6e156324e 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"); diff --git a/view/sv/profile_edit.tpl b/view/sv/profile_edit.tpl index b0d4850d0d..6c7d74dafc 100644 --- a/view/sv/profile_edit.tpl +++ b/view/sv/profile_edit.tpl @@ -134,11 +134,17 @@ $sexual
-
- - -
(Used for searching public profiles, never shown to others)
-
+
+ + +
(Used for suggesting potential friends, can be seen by others)
+
+ +
+ + +
(Used for searching profiles, never shown to others)
+
diff --git a/view/sv/settings.tpl b/view/sv/settings.tpl index 97d67cbf61..ea4e2e52c8 100644 --- a/view/sv/settings.tpl +++ b/view/sv/settings.tpl @@ -78,7 +78,7 @@ $profile_in_net_dir
- +
+
Automatically expire (delete) posts older than days
+
+ + +