From a7cead82e81e80160e66b9d1d1437d1fdb208a7f Mon Sep 17 00:00:00 2001 From: rolux Date: Fri, 26 Apr 2013 10:44:25 +0200 Subject: [PATCH] add embedFileDialog --- static/js/pandora/embedFileDialog.js | 58 ++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 static/js/pandora/embedFileDialog.js diff --git a/static/js/pandora/embedFileDialog.js b/static/js/pandora/embedFileDialog.js new file mode 100644 index 00000000..7cff1d62 --- /dev/null +++ b/static/js/pandora/embedFileDialog.js @@ -0,0 +1,58 @@ +// vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; + +pandora.ui.embedFileDialog = function(id) { + + var isImage = Ox.contains(['jpg', 'png'], selected.split('.').pop()), + url = 'http' + (pandora.site.site.https ? 's' : '') + '://' + + pandora.site.site.url + '/files/' + id, + + $content = Ox.Element() + .css({margin: '16px'}) + .html( + 'To embed this file, use the following HTML:
' + ), + + $embed = $('