File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -132,17 +132,17 @@ if (!jeeFrontEnd.pluginTemplate) {
132
132
}
133
133
document . querySelectorAll ( '.cmdTableState' ) . forEach ( _cmdState => {
134
134
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, '' )
136
136
let cmd = document . querySelector ( '.cmdTableState[data-cmd_id="' + _options . cmd_id + '"]' )
137
137
if ( cmd === null ) {
138
138
return
139
139
}
140
140
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
143
143
}
144
144
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
146
146
cmd . style . color = 'var(--logo-primary-color)'
147
147
setTimeout ( function ( ) {
148
148
cmd . style . color = null
You can’t perform that action at this time.
0 commit comments