Skip to content

Commit 0c2b6bc

Browse files
authored
test bugfix bruno
1 parent e202a1d commit 0c2b6bc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

core/js/plugin.template.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,17 +132,17 @@ if (!jeeFrontEnd.pluginTemplate) {
132132
}
133133
document.querySelectorAll('.cmdTableState').forEach(_cmdState => {
134134
jeedom.cmd.addUpdateFunction(_cmdState.getAttribute('data-cmd_id'), function(_options) {
135-
_options.display_value = String(_options.display_value).replace(/<[^>]*>?/gm, '')
135+
_options.value = String(_options.value).replace(/<[^>]*>?/gm, '')
136136
let cmd = document.querySelector('.cmdTableState[data-cmd_id="' + _options.cmd_id + '"]')
137137
if (cmd === null) {
138138
return
139139
}
140140
let title = '{{Date de collecte}} : ' + _options.collectDate + '<br/>{{Date de valeur}} ' + _options.valueDate
141-
if (_options.display_value.length > 50) {
142-
title += ' - ' + _options.display_value
141+
if (_options.value.length > 50) {
142+
title += ' - ' + _options.value
143143
}
144144
cmd.setAttribute('title', title)
145-
cmd.empty().innerHTML = _options.display_value.substring(0, 50) + ' ' + _options.unit
145+
cmd.empty().innerHTML = _options.value.substring(0, 50) + ' ' + _options.unit
146146
cmd.style.color = 'var(--logo-primary-color)'
147147
setTimeout(function() {
148148
cmd.style.color = null

0 commit comments

Comments
 (0)