From a8f10b9f5e57c8d3ae75df82cd39422cd8c5b83a Mon Sep 17 00:00:00 2001 From: Patrick Rauscher Date: Fri, 6 Apr 2012 01:32:44 +0000 Subject: [PATCH 01/10] issue #602 - will now take browsers position instead of iframe-source. will fail in cascaded framesets --- src/static/js/pad_editbar.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/static/js/pad_editbar.js b/src/static/js/pad_editbar.js index 7e8cf96e8..eab86d75b 100644 --- a/src/static/js/pad_editbar.js +++ b/src/static/js/pad_editbar.js @@ -235,7 +235,7 @@ var padeditbar = (function() { if ($('#readonlyinput').is(':checked')) { - var basePath = document.location.href.substring(0, document.location.href.indexOf("/p/")); + var basePath = top.location.href.substring(0, top.location.href.indexOf("/p/")); var readonlyLink = basePath + "/ro/" + clientVars.readOnlyId; $('#embedinput').val("