From 327542cb767675c334a1860567e6f0f16d6e17cb Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Fri, 27 Jan 2017 10:39:31 -0500 Subject: [PATCH] LP#1646166 Hatch attach point is documentElement Hatch now inserts its attribute into the root documentElement instead of the body. This is part of the move to using content_scripts instead of declarativeContent for the extension. Signed-off-by: Bill Erickson Signed-off-by: Kathy Lussier --- Open-ILS/src/templates/staff/base.tt2 | 2 +- Open-ILS/web/js/ui/default/staff/services/hatch.js | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Open-ILS/src/templates/staff/base.tt2 b/Open-ILS/src/templates/staff/base.tt2 index 85cab845c2..445b1aded8 100644 --- a/Open-ILS/src/templates/staff/base.tt2 +++ b/Open-ILS/src/templates/staff/base.tt2 @@ -27,7 +27,7 @@ - + diff --git a/Open-ILS/web/js/ui/default/staff/services/hatch.js b/Open-ILS/web/js/ui/default/staff/services/hatch.js index 0dc1677fea..4fee7cb5c9 100644 --- a/Open-ILS/web/js/ui/default/staff/services/hatch.js +++ b/Open-ILS/web/js/ui/default/staff/services/hatch.js @@ -123,9 +123,8 @@ angular.module('egCoreMod') service.openHatch = function() { // When the Hatch extension loads, it tacks an attribute onto - // the page body to indicate it's available. - - if (!$window.document.body.getAttribute('hatch-is-open')) { + // the top-level documentElement to indicate it's available. + if (!$window.document.documentElement.getAttribute('hatch-is-open')) { console.debug("Hatch is not available"); return; } -- 2.43.2