[!!!][TASK] Remove tceforms.js because we don't need it anymore 26/40726/2
authorFrank Nägler <typo3@naegler.net>
Mon, 29 Jun 2015 16:31:17 +0000 (18:31 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Mon, 29 Jun 2015 19:49:38 +0000 (21:49 +0200)
The IE code for ValueSlider is not needed anymore, also the QuickTips not
used within FormEngine.

Resolves: #67815
Releases: master
Change-Id: I9919dc1350271281ece6aa8767fb8c375205e906
Reviewed-on: http://review.typo3.org/40726
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/backend/Classes/Form/FormEngine.php
typo3/sysext/backend/Resources/Public/JavaScript/tceforms.js [deleted file]
typo3/sysext/core/Documentation/Changelog/master/Breaking-67815-RemoveTceformsjsBecauseWeDontNeedItAnymore.rst [new file with mode: 0644]

index eac8126..565cc77 100644 (file)
@@ -1266,7 +1266,6 @@ class FormEngine {
 
                        // @todo: remove scriptaclous once suggest & flex form foo is moved to RequireJS, see #55575
                        $pageRenderer->loadScriptaculous();
-                       $this->loadJavascriptLib('sysext/backend/Resources/Public/JavaScript/tceforms.js');
                        $this->loadJavascriptLib('sysext/backend/Resources/Public/JavaScript/jsfunc.tceforms_suggest.js');
 
                        $pageRenderer->loadRequireJsModule('TYPO3/CMS/Filelist/FileListLocalisation');
diff --git a/typo3/sysext/backend/Resources/Public/JavaScript/tceforms.js b/typo3/sysext/backend/Resources/Public/JavaScript/tceforms.js
deleted file mode 100644 (file)
index fb82f07..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- * This file is part of the TYPO3 CMS project.
- *
- * It is free software; you can redistribute it and/or modify it under
- * the terms of the GNU General Public License, either version 2
- * of the License, or any later version.
- *
- * For the full copyright and license information, please read the
- * LICENSE.txt file that was distributed with this source code.
- *
- * The TYPO3 project - inspiring people to share!
- */
-
-Ext.onReady(function() {
-       Ext.QuickTips.init();
-});
-
-       // Fix for slider TCA control in IE9
-Ext.override(Ext.dd.DragTracker, {
-       onMouseMove:function (e, target) {
-               var isIE9 = Ext.isIE && (/msie 9/.test(navigator.userAgent.toLowerCase())) && document.documentMode != 6;
-               if (this.active && Ext.isIE && !isIE9 && !e.browserEvent.button) {
-                       e.preventDefault();
-                       this.onMouseUp(e);
-                       return;
-               }
-               e.preventDefault();
-               var xy = e.getXY(), s = this.startXY;
-               this.lastXY = xy;
-               if (!this.active) {
-                       if (Math.abs(s[0] - xy[0]) > this.tolerance || Math.abs(s[1] - xy[1]) > this.tolerance) {
-                               this.triggerStart(e);
-                       } else {
-                               return;
-                       }
-               }
-               this.fireEvent('mousemove', this, e);
-               this.onDrag(e);
-               this.fireEvent('drag', this, e);
-       }
-});
\ No newline at end of file
diff --git a/typo3/sysext/core/Documentation/Changelog/master/Breaking-67815-RemoveTceformsjsBecauseWeDontNeedItAnymore.rst b/typo3/sysext/core/Documentation/Changelog/master/Breaking-67815-RemoveTceformsjsBecauseWeDontNeedItAnymore.rst
new file mode 100644 (file)
index 0000000..57d37f1
--- /dev/null
@@ -0,0 +1,26 @@
+======================================================================
+Breaking: #67815 - Remove tceforms.js because we don't need it anymore
+======================================================================
+
+Description
+===========
+
+Since the value slider is based on bootstrap, the last code from ``tceforms.js`` is not needed anymore.
+
+
+Impact
+======
+
+All instances which include ``sysext/backend/Resources/Public/JavaScript/tceforms.js`` will produce a 404 Not Found error.
+
+
+Affected Installations
+======================
+
+All instances which include ``sysext/backend/Resources/Public/JavaScript/tceforms.js``.
+
+
+Migration
+=========
+
+Remove all references to the file.