[BUGFIX] Finalize rowDescription for sys_file_collection
[Packages/TYPO3.CMS.git] / typo3 / sysext / workspaces / Resources / Private / Templates / Preview / Preview.html
index 42623f8..0c16f8d 100644 (file)
@@ -1,19 +1,4 @@
 <script type="text/javascript">
-       document.domain =  '{backendDomain}';
-
-               // @todo redirect to split module if this is opened standalone
-
-               // make sure we're in the workspace preview module 
-       if (typeof parent.resize == 'function') {
-               parent.resize(
-                       Math.max(
-                               Math.max(document.body.scrollHeight, document.documentElement.scrollHeight),
-                               Math.max(document.body.offsetHeight, document.documentElement.offsetHeight),
-                               Math.max(document.body.clientHeight, document.documentElement.clientHeight)
-                       )
-               );
-
-               var element = document.getElementById('typo3-previewInfo');
-               element.parentNode.removeChild(element);
-       }
-</script>
+       // having this is very important, otherwise the parent.resize call will fail
+       document.domain = '{backendDomain}';
+</script>
\ No newline at end of file