From eb68de7a44f5522e456c5d1c7b730bce4832f977 Mon Sep 17 00:00:00 2001 From: rolux Date: Thu, 5 Feb 2015 08:14:35 +0000 Subject: [PATCH] embed document dialog: support position --- static/js/embedDocumentDialog.js | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/static/js/embedDocumentDialog.js b/static/js/embedDocumentDialog.js index e176c3c1..a271f507 100644 --- a/static/js/embedDocumentDialog.js +++ b/static/js/embedDocumentDialog.js @@ -1,11 +1,15 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript 'use strict'; -pandora.ui.embedDocumentDialog = function(id) { +pandora.ui.embedDocumentDialog = function(id, position) { var $content = Ox.Element() .css({margin: '16px'}) - .html(Ox._('To embed this document, use the following HTML:')), + .html(Ox._( + 'To embed this document' + + (position ? ' at the current position' : '') + + ', use the following HTML:' + )), $embed = $('