diff options
author | goldquest <tjwelde@gmail.com> | 2012-12-06 17:51:43 +0100 |
---|---|---|
committer | goldquest <tjwelde@gmail.com> | 2012-12-06 17:51:43 +0100 |
commit | 1380fda2b2d879d6569a0613e82ac3cc70f839b4 (patch) | |
tree | d557b1830aa212140355adf7f6872c4feebe9fb3 | |
parent | 0908caaf0d2c63358d392d3311befe5e854c4e85 (diff) | |
download | etherpad-lite-1380fda2b2d879d6569a0613e82ac3cc70f839b4.zip |
use the parent window, not the top
-rw-r--r-- | src/node/handler/ImportHandler.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node/handler/ImportHandler.js b/src/node/handler/ImportHandler.js index 6bf223f2..db82eac7 100644 --- a/src/node/handler/ImportHandler.js +++ b/src/node/handler/ImportHandler.js @@ -176,6 +176,6 @@ exports.doImport = function(req, res, padId) ERR(err); //close the connection - res.send("<script type='text/javascript' src='/static/js/jquery.js'></script><script> if ( (!$.browser.msie) && (!($.browser.mozilla && $.browser.version.indexOf(\"1.8.\") == 0)) ){document.domain = document.domain;}var impexp = window.top.require('/pad_impexp').padimpexp.handleFrameCall('" + status + "');</script>", 200); + res.send("<script type='text/javascript' src='/static/js/jquery.js'></script><script> if ( (!$.browser.msie) && (!($.browser.mozilla && $.browser.version.indexOf(\"1.8.\") == 0)) ){document.domain = document.domain;}var impexp = window.parent.require('/pad_impexp').padimpexp.handleFrameCall('" + status + "');</script>", 200); }); } |