From: vincent@cubedesigners.com Date: Wed, 25 May 2016 10:16:41 +0000 (+0000) Subject: wip #436 @1 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=3ecb05717f4f658f305379499ea4916fcf16db6c;p=cubeextranet.git wip #436 @1 --- diff --git a/fluidbook/compile/_js/fluidbook.js b/fluidbook/compile/_js/fluidbook.js index da285130b..a517847d2 100644 --- a/fluidbook/compile/_js/fluidbook.js +++ b/fluidbook/compile/_js/fluidbook.js @@ -20,6 +20,30 @@ function getWmode() { } } +function inFrame() { + try { + return window.self !== window.top; + } catch (e) { + return true; + } +} + +function navigateToURL(url, window) { + if (window == '_self') { + window.location = url; + return; + } + if (window == '_top') { + window.top.location = url; + return; + } + if (window == '_parent') { + window.parent.location = url; + return; + } + window.open(url, window); +} + function supportHTML5Version() { var prefixes = 'transform WebkitTransform MozTransform OTransform msTransform'.split(' '); var div = document.createElement('div'); @@ -50,7 +74,7 @@ function getFlashvars(junk, fv) { } res = parseGet(res); - res['junk'] = $ESAPI.encoder().encodeForJavaScript(junk+""); + res['junk'] = $ESAPI.encoder().encodeForJavaScript(junk + ""); return res; }