Small optimization
authorMarcel Werk <burntime@woltlab.com>
Fri, 14 Jun 2013 23:24:08 +0000 (01:24 +0200)
committerMarcel Werk <burntime@woltlab.com>
Fri, 14 Jun 2013 23:24:08 +0000 (01:24 +0200)
wcfsetup/install/files/acp/js/WCF.ACP.js

index 1cc40b42910760f90f2530385d0ce5b2ae4b4737..c1ac6408a8496056dab2dd497c06bcb436923d74 100644 (file)
@@ -198,13 +198,13 @@ WCF.ACP.Cronjob.LogList = Class.extend({
                var $errorBadge = $(event.currentTarget);
                
                if (this._dialog === null) {
-                       this._dialog = $('<div>' + $errorBadge.next().html() + '</div>').hide().appendTo(document.body);
+                       this._dialog = $('<div style="overflow: auto"><pre>' + $errorBadge.next().html() + '</pre></div>').hide().appendTo(document.body);
                        this._dialog.wcfDialog({
                                title: WCF.Language.get('wcf.acp.cronjob.log.error.details')
                        });
                }
                else {
-                       this._dialog.html($errorBadge.next().html());
+                       this._dialog.html('<pre>' + $errorBadge.next().html() + '</pre>');
                        this._dialog.wcfDialog('open');
                }
        }