From 39b42f01910001f1475ffc2ebd45546d2ebe15d5 Mon Sep 17 00:00:00 2001 From: Aysam Guerler Date: Wed, 11 Sep 2013 12:15:13 -0400 Subject: [PATCH] Ensure availability of window.Galaxy variable --- templates/base/base_panels.mako | 3 +++ templates/webapps/galaxy/galaxy.panels.mako | 3 +++ 2 files changed, 6 insertions(+) diff --git a/templates/base/base_panels.mako b/templates/base/base_panels.mako index a8f8c0309eb..14fdb0c7496 100644 --- a/templates/base/base_panels.mako +++ b/templates/base/base_panels.mako @@ -81,6 +81,9 @@ if (window != window.top) $('').appendTo('head'); + // start a Galaxy namespace for objects created + window.Galaxy = window.Galaxy || {}; + // console protection window.console = window.console || { log : function(){}, diff --git a/templates/webapps/galaxy/galaxy.panels.mako b/templates/webapps/galaxy/galaxy.panels.mako index 523d2693f9d..c1937cf6b0f 100644 --- a/templates/webapps/galaxy/galaxy.panels.mako +++ b/templates/webapps/galaxy/galaxy.panels.mako @@ -58,6 +58,9 @@ ## make sure console exists