Fixed persisting of prerelease switch.

10.3.x-maintenance
Michael Keller 2016-08-19 13:30:30 +12:00
parent c6529589e0
commit dac6e7a659
1 changed files with 7 additions and 3 deletions

View File

@ -160,6 +160,10 @@ TABS.firmware_flasher.initialize = function (callback) {
localize(); localize();
// bind events // bind events
$('input.show_development_releases').click(function () {
loadReleaseData();
});
$('select[name="board"]').change(function() { $('select[name="board"]').change(function() {
$("a.load_remote_file").addClass('disabled'); $("a.load_remote_file").addClass('disabled');
var target = $(this).val(); 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').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')}); chrome.storage.local.set({'show_development_releases': $(this).is(':checked')});
}).click(); }).change();
}); });
$(document).keypress(function (e) { $(document).keypress(function (e) {