Skip to content

Commit

Permalink
Keep "Show Upstream Dependencies" checkbox consistent on reload.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Stephen Pascoe authored and Stephen Pascoe committed Sep 11, 2015
1 parent 11ad368 commit e48a0f9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions luigi/static/visualiser/js/visualiserApp.js
Expand Up @@ -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);
Expand Down

0 comments on commit e48a0f9

Please sign in to comment.