diff options
author | Mike Macgirvin <mike@macgirvin.com> | 2010-08-19 20:52:49 -0700 |
---|---|---|
committer | Mike Macgirvin <mike@macgirvin.com> | 2010-08-19 20:52:49 -0700 |
commit | f9f284ba708c7f135931f87a922e7716a3dabb85 (patch) | |
tree | c5c1d9136125ea6ef8de56d43f4b7ea5dc3ca024 /view | |
parent | 0ea5e7fc9572caabc97c7a9e5ae3451e956bceef (diff) | |
download | volse-hubzilla-f9f284ba708c7f135931f87a922e7716a3dabb85.tar.gz volse-hubzilla-f9f284ba708c7f135931f87a922e7716a3dabb85.tar.bz2 volse-hubzilla-f9f284ba708c7f135931f87a922e7716a3dabb85.zip |
share youtube videos
Diffstat (limited to 'view')
-rw-r--r-- | view/jot-header.tpl | 7 | ||||
-rw-r--r-- | view/jot.tpl | 3 | ||||
-rw-r--r-- | view/theme/default/style.css | 4 |
3 files changed, 14 insertions, 0 deletions
diff --git a/view/jot-header.tpl b/view/jot-header.tpl index 22e425463..b13a324bb 100644 --- a/view/jot-header.tpl +++ b/view/jot-header.tpl @@ -73,6 +73,13 @@ tinyMCE.init({ } } + function jotGetVideo() { + reply = prompt("Please enter a YouTube link:"); + if(reply && reply.length) { + tinyMCE.execCommand('mceInsertRawHTML',false,'[youtube]' + reply + '[/youtube]'); + } + } + function linkdropper(event) { var linkFound = event.dataTransfer.types.contains("text/uri-list"); if(linkFound) diff --git a/view/jot.tpl b/view/jot.tpl index 718277210..481ab125b 100644 --- a/view/jot.tpl +++ b/view/jot.tpl @@ -21,6 +21,9 @@ <div id="profile-link-wrapper" style="display: $visitor;" ondragenter="linkdropper(event);" ondragover="linkdropper(event);" ondrop="linkdrop(event);" > <img id="profile-link" src="images/link-icon.gif" alt="Insert web link" title="Insert web link" ondragenter="return linkdropper(event);" ondragover="return linkdropper(event);" ondrop="linkdrop(event);" onclick="jotGetLink();" /> </div> + <div id="profile-youtube-wrapper" style="display: $visitor;" > + <img id="profile-video" src="images/youtube_icon.gif" alt="Insert YouTube video" title="Insert YouTube video" onclick="jotGetVideo();" /> + </div> <div id="profile-rotator-wrapper" style="display: $visitor;" > <img id="profile-rotator" src="images/rotator.gif" alt="Please wait" title="Please wait" style="display: none;" /> </div> diff --git a/view/theme/default/style.css b/view/theme/default/style.css index 53bbbd7a9..872fb1f61 100644 --- a/view/theme/default/style.css +++ b/view/theme/default/style.css @@ -716,6 +716,10 @@ input#dfrn-url { float: left; margin-left: 20px; } +#profile-youtube-wrapper { + float: left; + margin-left: 20px; +} #profile-jot-perms { float: left; |