diff options
Diffstat (limited to 'public/js/modif_page.js')
-rw-r--r-- | public/js/modif_page.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/public/js/modif_page.js b/public/js/modif_page.js index dd7271e..ee2004b 100644 --- a/public/js/modif_page.js +++ b/public/js/modif_page.js | |||
@@ -188,6 +188,7 @@ function changePresentation(bloc_id){ | |||
188 | .then(data => { | 188 | .then(data => { |
189 | if(data.success){ | 189 | if(data.success){ |
190 | document.getElementById(bloc_id).className = presentation; | 190 | document.getElementById(bloc_id).className = presentation; |
191 | document.getElementById(bloc_id).querySelector(".section_child").style.gridTemplateColumns = presentation === 'grid' ? 'repeat(auto-fit, minmax(' + data.cols_min_width + 'px, 1fr))' : ''; | ||
191 | document.getElementById('cols_min_width_edit_' + bloc_id).className = presentation === 'grid' ? '' : 'hidden'; | 192 | document.getElementById('cols_min_width_edit_' + bloc_id).className = presentation === 'grid' ? '' : 'hidden'; |
192 | console.log('changement de présentation'); | 193 | console.log('changement de présentation'); |
193 | } | 194 | } |