From e48a0f99ed49e963d8c9e938439f649952278b0c Mon Sep 17 00:00:00 2001 From: Stephen Pascoe Date: Fri, 11 Sep 2015 16:34:25 +0100 Subject: [PATCH] Keep "Show Upstream Dependencies" checkbox consistent on reload. The behaviour is different on Firefox to Chrome/Safari. For some reason firefox remembers the state of the checkbox on reload but the others reset it. Either way, this update keeps the UI consistent. --- luigi/static/visualiser/js/visualiserApp.js | 1 + 1 file changed, 1 insertion(+) diff --git a/luigi/static/visualiser/js/visualiserApp.js b/luigi/static/visualiser/js/visualiserApp.js index bc72590a82..cc7752dabf 100644 --- a/luigi/static/visualiser/js/visualiserApp.js +++ b/luigi/static/visualiser/js/visualiserApp.js @@ -352,6 +352,7 @@ function visualiserApp(luigi) { function bindListEvents() { $(window).on('hashchange', processHashChange); + invertDependencies = $('#invertCheckbox')[0].checked; $("#invertCheckbox").click(function() { invertDependencies = this.checked; processHashChange(true);