From: Bill Erickson Date: Fri, 27 Jan 2017 15:39:31 +0000 (-0500) Subject: LP#1646166 Hatch attach point is documentElement X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=327542cb767675c334a1860567e6f0f16d6e17cb;p=contrib%2FConifer.git 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 --- 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; }