Skip to content

Commit

Permalink
fix doser setup bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
d0ughb0y committed Oct 21, 2014
1 parent 10c8f6e commit 8244178
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Binary file modified index.gz
Binary file not shown.
10 changes: 9 additions & 1 deletion index.htm
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,8 @@ <h1 id="csformhdr">Controller Setup</h1>
<ul>
<li><a href="#" class="ui-btn-active-ui-state-persist" id="dosernav0">Doser 0</a> </li>
<li><a href="#" id="dosernav1">Doser 1</a> </li>
<li><a href="#" id="dosernav2">Doser 2</a> </li>
<li><a href="#" id="dosernav3">Doser 3</a> </li>
</ul>
</div>
<div data-role="content">
Expand Down Expand Up @@ -2368,6 +2370,13 @@ <h1 id="_dosercalibratehdr"></h1>
}
if (config.dosers.length==0){
$('#contentdosers').html("<h1>No dosers defined.</h1>")
} else {
if (config.dosers.length<4)
$("#dosernav3").parent("li").remove();
if (config.dosers.length<3)
$("#dosernav2").parent("li").remove();
if (config.dosers.length<2)
$('#dosernav1').parent("li").remove();
}
if (config.alerts.length==0){
$('#contentsensors').html("<h1>No sensors defined.</h1>")
Expand Down Expand Up @@ -2425,7 +2434,6 @@ <h1 id="_dosercalibratehdr"></h1>
$("#pwmfannav2").parent("li").remove();
if (config.pwmfans.length<2)
$("#pwmfannav1").parent("li").remove();

}
}).on('pagehide', function(e, data) {
if (data.nextPage[0].id=='pumpprogramedit' || data.nextPage[0].id=='editaction') return;
Expand Down

0 comments on commit 8244178

Please sign in to comment.