diff options
| author | polo <ordipolo@gmx.fr> | 2025-09-06 00:33:22 +0200 |
|---|---|---|
| committer | polo <ordipolo@gmx.fr> | 2025-09-06 00:33:22 +0200 |
| commit | c5d9df5c42b5d2522e2a06b5f40422c1bbf497ab (patch) | |
| tree | ce07ebbbc6212f2185ee9ab8024168e934319865 /public | |
| parent | 7be773469a719d4170dcb6418b85277540c08b3f (diff) | |
| download | cms-c5d9df5c42b5d2522e2a06b5f40422c1bbf497ab.tar.gz cms-c5d9df5c42b5d2522e2a06b5f40422c1bbf497ab.tar.bz2 cms-c5d9df5c42b5d2522e2a06b5f40422c1bbf497ab.zip | |
correction bug au nombre de colonne lors du changement de la présentation d'un bloc
Diffstat (limited to 'public')
| -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 | } |
