Skip to content

Commit

Permalink
fix #2634
Browse files Browse the repository at this point in the history
  • Loading branch information
zoic21 authored May 16, 2024
1 parent f40a50a commit d4601eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion desktop/js/plan.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ if (!jeeFrontEnd.plan) {
success: function(data) {
jeedom.cmd.resetUpdateFunction()
jeeFrontEnd.plan.planContainer.empty().insertAdjacentHTML('beforeend', '<div id="div_grid" class="container-fluid" style="display:none;"></div>')
document.querySelectorAll('.style_plan_specific').remove();
Object.assign(jeeFrontEnd.plan.planContainer.style, {height:"auto", width:"auto"})
//general design configuration:
if (isset(data.image)) {
Expand Down Expand Up @@ -431,7 +432,7 @@ if (!jeeFrontEnd.plan) {
}

document.querySelector('#style_' + _plan.link_type + '_' + _plan.id)?.remove()
var style_el = '<style id="style_' + _plan.link_type + '_' + _plan.id + '">'
var style_el = '<style class="style_plan_specific" id="style_' + _plan.link_type + '_' + _plan.id + '">'
if (_plan.display.css && _plan.display.css != '') {
if (_plan.display.cssApplyOn && _plan.display.cssApplyOn != '') {
var cssApplyOn = _plan.display.cssApplyOn.split(',')
Expand Down

0 comments on commit d4601eb

Please sign in to comment.