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=43b3ba8bbf560c0925750e5970783c203e55b793;p=evergreen%2Fpines.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 --- diff --git a/Open-ILS/src/templates/staff/base.tt2 b/Open-ILS/src/templates/staff/base.tt2 index 65f6b93579..7f4c64a958 100644 --- a/Open-ILS/src/templates/staff/base.tt2 +++ b/Open-ILS/src/templates/staff/base.tt2 @@ -22,7 +22,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; }