From dac6e7a659fcc24a5d668bd1f7523586b27cdc88 Mon Sep 17 00:00:00 2001 From: Michael Keller Date: Fri, 19 Aug 2016 13:30:30 +1200 Subject: [PATCH] Fixed persisting of prerelease switch. --- tabs/firmware_flasher.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tabs/firmware_flasher.js b/tabs/firmware_flasher.js index 47daf6da..891368a3 100755 --- a/tabs/firmware_flasher.js +++ b/tabs/firmware_flasher.js @@ -160,6 +160,10 @@ TABS.firmware_flasher.initialize = function (callback) { localize(); // bind events + $('input.show_development_releases').click(function () { + loadReleaseData(); + }); + $('select[name="board"]').change(function() { $("a.load_remote_file").addClass('disabled'); var target = $(this).val(); @@ -529,11 +533,11 @@ TABS.firmware_flasher.initialize = function (callback) { $('input.show_development_releases').prop('checked', false); } - $('input.show_development_releases').click(function () { - loadReleaseData(); + loadReleaseData(); + $('input.show_development_releases').change(function () { chrome.storage.local.set({'show_development_releases': $(this).is(':checked')}); - }).click(); + }).change(); }); $(document).keypress(function (e) {