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 15, 2015
1 parent 514ac31 commit 57e9eb5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions luigi/static/visualiser/js/visualiserApp.js
Original file line number Diff line number Diff line change
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 57e9eb5

Please sign in to comment.