]> git.evergreen-ils.org Git - Evergreen.git/commit
webstaff: add routine for Dojo JS to detect if running in iframe
authorGalen Charlton <gmc@esilibrary.com>
Thu, 27 Aug 2015 22:23:23 +0000 (22:23 +0000)
committerJason Stephenson <jstephenson@mvlc.org>
Mon, 14 Sep 2015 19:44:16 +0000 (15:44 -0400)
commit99a17c4ad454ec4eac3394bb224bb3ad738fdf8f
tree26491f01d73e9d9a6b5a0b34cd6d6d2bdd6edf74
parent30514d239eb4d7860ed27f202bd4e9d30c1ad411
webstaff: add routine for Dojo JS to detect if running in iframe

Sometimes legacy Dojo interfaces may need to adjust their
behavior if they're embedded in the web staff client. This patch
adds a new utility function, openils.Util.inIFrame(), to detect
if such code is running in an iframe. If so, the presumption
is that iframe belongs to the web staff client.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Open-ILS/web/js/dojo/openils/Util.js