From 04c059341d23ef5a89f57fde287f515b326a070e Mon Sep 17 00:00:00 2001 From: bruno Date: Sun, 19 Jul 2026 13:20:29 -0400 Subject: [PATCH] =?UTF-8?q?fix(workspace):=20corriger=20les=20s=C3=A9quenc?= =?UTF-8?q?es=20d'=C3=A9chappement=20cass=C3=A9es=20dans=20renderChildren?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Les échappements de quotes dans le patch précédent étaient cassés (\\' au lieu de \'), causant des erreurs de syntaxe JS qui empêchaient l'initialisation de _wsInitData et donc d'Alpine. --- app/templates/local_workspace.html | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/app/templates/local_workspace.html b/app/templates/local_workspace.html index b38393c..4345f6d 100644 --- a/app/templates/local_workspace.html +++ b/app/templates/local_workspace.html @@ -950,11 +950,11 @@ window._wsInitData = (function() { + ' data-folder-id="'+(c.is_folder?c.id:'')+'"' + ' data-ws-id="'+escId+'"' + ' ondragstart="var d=window._wsData;if(d)d.onInternalDragStart(event,'+escId+')"' - + ' ondragend="event.target.style.opacity=\\'\\'">'; + + ' ondragend="event.target.style.opacity=\'\'">'; // Checkbox html += ''; // Drag handle html += '
' @@ -962,7 +962,7 @@ window._wsInitData = (function() { + '' + '
'; if (c.is_folder && hasKids) { - html += ''; + html += ''; } else { html += ''; } @@ -971,15 +971,15 @@ window._wsInitData = (function() { var countBadge = (c.child_count > 0) ? ' ('+c.child_count+')' : ''; html += ''+c.name+countBadge+''; } else { - // Click to rename, double-click or button to open + // Click to rename, double-click to open html += '' + ''+c.name+'' + '' + ''; @@ -987,17 +987,17 @@ window._wsInitData = (function() { html += '
'; if (c.is_folder) { html += ''; - html += ''; - html += ''; + html += ''; + html += ''; html += ''; } - html += ''; - html += ''; + html += ''; + html += ''; // Open button for files if (!c.is_folder) { html += '⤢ Open'; + + ' onmouseover="this.style.opacity=\'1\'" onmouseout="this.style.opacity=\'0\'"' + + ' onclick="event.stopPropagation();return true">\u2931 Open'; } // Tags if (c.tags && c.tags.length > 0) {