[!!!][TASK] Remove deprecated function `launchView()` 51/59351/2
authorAndreas Fernandez <a.fernandez@scripting-base.de>
Mon, 7 Jan 2019 07:40:43 +0000 (08:40 +0100)
committerWouter Wolters <typo3@wouterwolters.nl>
Mon, 7 Jan 2019 08:25:01 +0000 (09:25 +0100)
Resolves: #87343
Related: #87193
Releases: master
Change-Id: Ia93afa94cd510debc0a37930f1dbf761d7d23267
Reviewed-on: https://review.typo3.org/59351
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/backend/Resources/Public/JavaScript/backend.js
typo3/sysext/core/Documentation/Changelog/master/Breaking-87193-DeprecatedFunctionalityRemoved.rst

index 64e214d..9b45407 100644 (file)
@@ -66,20 +66,6 @@ function str_replace(match, replace, string) {       //
   return output;
 }
 
-
-/**
- * Launcing information window for records/files (fileref as "table" argument)
- */
-function launchView(table, uid) {
-  console.warn('Calling launchView() has been deprecated in v9 and will be removed in v10.0');
-  var thePreviewWindow = window.open(TYPO3.settings.ShowItem.moduleUrl + '&table=' + encodeURIComponent(table) + "&uid=" + encodeURIComponent(uid),
-    "ShowItem" + Math.random().toString(16).slice(2),
-    "width=650,height=600,status=0,menubar=0,resizable=0,location=0,directories=0,scrollbars=1,toolbar=0");
-  if (thePreviewWindow && thePreviewWindow.focus) {
-    thePreviewWindow.focus();
-  }
-}
-
 /**
  * Opens plain window with url
  */
index 1a913d1..96d8aba 100644 (file)
@@ -1069,6 +1069,11 @@ The following php doc annotations have been removed:
 * `@validate`
 
 
+The following global JavaScript functions have been removed:
+
+* `launchView()` - Use the method `showItem()` of the `TYPO3/CMS/Backend/InfoWindow` module
+
+
 The following JavaScript modules have been removed:
 
 * `TYPO3/CMS/Backend/Storage` - Use either `TYPO3/CMS/Backend/Storage/Client` or `TYPO3/CMS/Backend/Storage/Persistent`