Skip to content
This repository has been archived by the owner on Aug 16, 2023. It is now read-only.

Commit

Permalink
this fixes gorhill#34
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhill committed Nov 2, 2014
1 parent 14cd078 commit 6627027
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/js/info.js
Original file line number Diff line number Diff line change
Expand Up @@ -314,8 +314,8 @@ function changeFilterHandler() {
// Initialize request filters as per user settings:
// https://github.com/gorhill/httpswitchboard/issues/49
var statsFilters = cachedUserSettings.statsFilters;
uDom('input[id^="show-"][type="checkbox"]').toArray().forEach(function() {
var input = uDom(this);
uDom('input[id^="show-"][type="checkbox"]').toArray().forEach(function(elem) {
var input = uDom(elem);
statsFilters[input.attr('id')] = !!input.prop('checked');
});
changeUserSettings('statsFilters', statsFilters);
Expand Down Expand Up @@ -396,8 +396,8 @@ uDom.onLoad(function(){
// init ui as per user settings
uDom('#max-logged-requests').val(userSettings.maxLoggedRequests);
var statsFilters = userSettings.statsFilters;
uDom('input[id^="show-"][type="checkbox"]').toArray().forEach(function() {
var input = uDom(this);
uDom('input[id^="show-"][type="checkbox"]').toArray().forEach(function(elem) {
var input = uDom(elem);
var filter = statsFilters[input.attr('id')];
input.prop('checked', filter === undefined || filter === true);
});
Expand Down

0 comments on commit 6627027

Please sign in to comment.