diff --git a/static/js/embedDocumentDialog.js b/static/js/embedDocumentDialog.js index e176c3c1a..a271f5074 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 = $('