Fix showing AJAX request error in dialog
authorMatthias Schmidt <gravatronics@live.com>
Tue, 18 Aug 2015 18:08:49 +0000 (20:08 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Tue, 18 Aug 2015 18:08:49 +0000 (20:08 +0200)
wcfsetup/install/files/js/WoltLab/WCF/Ajax/Request.js

index b9d0c425873687e841135e6817c8000b864177ec..675c8cfd328a71a891724ba1d13dd344ecdcdb60 100644 (file)
@@ -270,6 +270,7 @@ define(['Core', 'Language', 'Dom/ChangeListener', 'Dom/Util', 'Ui/Dialog', 'Wolt
                                
                                var html = '<div class="ajaxDebugMessage"><p>' + message + '</p>' + details + '</div>';
                                
+                               if (UiDialog === undefined) UiDialog = require('Ui/Dialog');
                                UiDialog.openStatic(DomUtil.getUniqueId(), html, {
                                        title: Language.get('wcf.global.error.title')
                                });