diff options
author | Friendika <info@friendika.com> | 2011-05-23 18:18:01 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-05-23 18:18:01 -0700 |
commit | 19ccd658ebcf13a7cc208a3e460e44d152dda32f (patch) | |
tree | a6cfc22e4e40fe00ef5aac27023ccbfa8789958a /addon/oembed/oembed.js | |
parent | 78b2db3a9840f551c951bf0a58a54cce08133bcf (diff) | |
parent | cde888f7f87449d4f5a281b8a23abcf3234ce9b9 (diff) | |
download | volse-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.js | 12 |
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]" ); + } } |