Fix a bug in RRD plugin related to probe names with dots.

Change-Id: Ib269771fce0fab34cf452baf81ca03914fbf4104
This commit is contained in:
François Rossigneux 2014-02-17 14:35:36 +01:00
parent 7c25fab119
commit 3082ca7bcc
2 changed files with 3 additions and 3 deletions

View File

@ -16,13 +16,13 @@ check_drivers_interval = 60
log_file = /var/log/kwapi/kwapi-drivers.log
verbose = true
# Wattmeter config examples
#[Wattmeter 1]
#probes = ['A']
#driver = Wattsup
#parameters = {'device': '/dev/ttyUSB0'}
# Wattmeter config examples
#[Wattmeter 2]
#probes = ['B']
#driver = Dummy

View File

@ -76,7 +76,7 @@
// Event handler for deleting a probe
$(document.body).on('select2-removing', 'select', function(e) {
$('#' + e.val).parent().remove();
$('#' + e.val.replace(/\./g, '\\.')).parent().remove();
});
// Bind buttons to event handlers