aboutsummaryrefslogtreecommitdiffstats
path: root/addon/oembed/oembed.js
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-05-23 18:18:01 -0700
committerFriendika <info@friendika.com>2011-05-23 18:18:01 -0700
commit19ccd658ebcf13a7cc208a3e460e44d152dda32f (patch)
treea6cfc22e4e40fe00ef5aac27023ccbfa8789958a /addon/oembed/oembed.js
parent78b2db3a9840f551c951bf0a58a54cce08133bcf (diff)
parentcde888f7f87449d4f5a281b8a23abcf3234ce9b9 (diff)
downloadvolse-hubzilla-19ccd658ebcf13a7cc208a3e460e44d152dda32f.tar.gz
volse-hubzilla-19ccd658ebcf13a7cc208a3e460e44d152dda32f.tar.bz2
volse-hubzilla-19ccd658ebcf13a7cc208a3e460e44d152dda32f.zip
Merge branch 'pull'
Diffstat (limited to 'addon/oembed/oembed.js')
-rw-r--r--addon/oembed/oembed.js12
1 files changed, 4 insertions, 8 deletions
diff --git a/addon/oembed/oembed.js b/addon/oembed/oembed.js
index 54547a86e..f8e957413 100644
--- a/addon/oembed/oembed.js
+++ b/addon/oembed/oembed.js
@@ -1,10 +1,6 @@
function oembed(){
- $("#oembed").toggleClass('hide');
-}
-
-function oembed_do(){
- embed = "[embed]"+$('#oembed_url').attr('value')+"[/embed]";
-
- tinyMCE.execCommand('mceInsertRawHTML',false,embed);
- oembed();
+ var reply = prompt("$oembed_message:");
+ if(reply && reply.length) {
+ tinyMCE.execCommand('mceInsertRawHTML',false, "[embed]"+reply+"[/embed]" );
+ }
}