[BUGFIX] Access global TYPO3 object correctly
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / Resources / Private / TypeScript / InfoWindow.ts
index a7aa9e6..76e9b5d 100644 (file)
@@ -11,8 +11,8 @@
  * The TYPO3 project - inspiring people to share!
  */
 
-import Modal = require('TYPO3/CMS/Backend/Modal');
-import Severity = require('TYPO3/CMS/Backend/Severity');
+import {SeverityEnum} from './Enum/Severity';
+import Modal = require('./Modal');
 
 /**
  * Module: TYPO3/CMS/Backend/InfoWindow
@@ -29,10 +29,10 @@ class InfoWindow {
     Modal.advanced({
       type: Modal.types.iframe,
       size: Modal.sizes.large,
-      content: TYPO3.settings.ShowItem.moduleUrl
+      content: top.TYPO3.settings.ShowItem.moduleUrl
         + '&table=' + encodeURIComponent(table)
         + '&uid=' + (typeof uid === 'number' ? uid : encodeURIComponent(uid)),
-      severity: Severity.notice
+      severity: SeverityEnum.notice
     });
   }
 }