Skip to content

Commit

Permalink
Fixing a bug that would cause the refresh timer to start even when au…
Browse files Browse the repository at this point in the history
…torefresh was off
  • Loading branch information
peterfarsinsen committed Mar 5, 2013
1 parent 88620a4 commit 72f4795
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion media/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ $('.btn.autorefresh').click(function(e) {
}
});

if($('input[name="autorefresh"]').val() != '') {
if($('input[name="autorefresh"]').length > 0) {
startImageRefresh();
}

0 comments on commit 72f4795

Please sign in to comment.