Skip to content

Commit

Permalink
Fix - Move chart error hide into the update function so it gets updat…
Browse files Browse the repository at this point in the history
…ed (hidden).
  • Loading branch information
NOYB committed May 19, 2016
1 parent 13e765f commit 320916a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -791,6 +791,7 @@ function update_graph(force) {

if (force || $( "#auto-update" ).val() > 0) {
$("#loading-msg").show();
$("#chart-error").hide();
draw_graph(getOptions());
}

Expand Down Expand Up @@ -1069,7 +1070,6 @@ function applySettings(defaults) {

applySettings("<?php echo $pconfig['category']; ?>");

$("#chart-error").hide();
$( "#settings" ).click(function() {
($(this).text().trim() === 'Display Advanced') ? $(this).html('<i class="fa fa-cog fa-lg"></i> Hide Advanced') : $(this).html('<i class="fa fa-cog fa-lg"></i> Display Advanced');
$("#export").toggle();
Expand Down

0 comments on commit 320916a

Please sign in to comment.