Fix a bug in refresh function in RRD plugin.
Change-Id: I4f679fae4d3ee2231e340bfc5f5a7af8ce8c2b10
This commit is contained in:
parent
aab0236d54
commit
d2e9782030
|
@ -18,7 +18,7 @@
|
|||
}
|
||||
|
||||
function reloadAllImages() {
|
||||
$('.graph:visible').each(function() {
|
||||
$('.graph').each(function() {
|
||||
reloadImage($(this));
|
||||
});
|
||||
}
|
||||
|
@ -34,6 +34,7 @@
|
|||
});
|
||||
});
|
||||
$('select').select2('val', selected);
|
||||
reloadAllImages();
|
||||
}
|
||||
|
||||
function deselectAll() {
|
||||
|
@ -65,6 +66,7 @@
|
|||
$(document.body).on('select2-selecting', 'select', function(e) {
|
||||
var probe = '<a href="/probe/' + e.val + '"><img class="graph" id="' + e.val + '" src="/graph/{{ scale }}/' + e.val + '/" alt="Graph ' + e.val + '"/></a>';
|
||||
$('#probes').append(probe);
|
||||
reloadAllImages();
|
||||
});
|
||||
|
||||
// Event handler for deleting a probe
|
||||
|
|
Loading…
Reference in New Issue