From 3dfbbc7e081cae0c8b95b727e3791915afcc47ec Mon Sep 17 00:00:00 2001 From: Dannon Baker Date: Fri, 1 Dec 2017 14:41:20 -0500 Subject: [PATCH] Provide Galaxy.config var to indicate whether onload webhooks should kick off; use it. Fixes shed/reports use of them. --- client/galaxy/scripts/onload.js | 29 ++++++++++--------- lib/galaxy/webapps/galaxy/controllers/root.py | 1 + 2 files changed, 17 insertions(+), 13 deletions(-) diff --git a/client/galaxy/scripts/onload.js b/client/galaxy/scripts/onload.js index 7ab257568f8..20822afc8f1 100644 --- a/client/galaxy/scripts/onload.js +++ b/client/galaxy/scripts/onload.js @@ -204,20 +204,23 @@ $(document).ready(() => { } function onloadWebhooks() { - if (Galaxy.root !== undefined) { - // Load all webhooks with the type 'onload' - $.getJSON(`${Galaxy.root}api/webhooks/onload/all`, webhooks => { - _.each(webhooks, webhook => { - if (webhook.activate && webhook.script) { - $("