diff --git a/sao/src/common.js b/sao/src/common.js index 78886531e5..00af62576b 100644 --- a/sao/src/common.js +++ b/sao/src/common.js @@ -3639,21 +3639,22 @@ 'white-space': 'pre-wrap', 'word-break': 'break-all', })); - alert_.append(jQuery('

').append(jQuery('', { - 'class': 'btn btn-default', - role: 'button', - 'data-toggle': 'collapse', - 'data-target': '#error-detail', - 'aria-expanded': false, - 'aria-controls': '#error-detail', - }).text(Sao.i18n.gettext("Details")))); if (details) { - alert_.append(jQuery('

', { - 'class': 'collapse', - id: 'error-detail', - }).append(jQuery('

', {
-                    'class': 'pre-scrollable',
-                }).text(details)));
+                alert_.append(
+                    jQuery('

').append(jQuery('', { + 'class': 'btn btn-default', + role: 'button', + 'data-toggle': 'collapse', + 'data-target': '#error-detail', + 'aria-expanded': false, + 'aria-controls': '#error-detail', + }).text(Sao.i18n.gettext("Details")))) + .append(jQuery('

', { + 'class': 'collapse', + id: 'error-detail', + }).append(jQuery('

', {
+                        'class': 'pre-scrollable',
+                    }).text(details)));
             }
             jQuery('', {
                 'class': 'btn btn-link',