[TASK] Remove old prototype.js utilities 98/34098/4
authorBenjamin Mack <benni@typo3.org>
Thu, 13 Nov 2014 16:53:00 +0000 (17:53 +0100)
committerFelix Kopp <felix-source@phorax.com>
Sat, 15 Nov 2014 10:32:14 +0000 (11:32 +0100)
commit7c5cec20234b19a984b9194808301c4be6116ccc
tree3ac5f4aee4093ca24d082a30822fe459d16ee89f
parent4b3c14647e663e62f2ae55aab15c4e626bd667c6
[TASK] Remove old prototype.js utilities

One of the initial JS files with prototype
called common.js (which was moved from
typo3/js/common.js into EXT:backend
with the file structure change) was previously
used for calls using Prototype AJAX
calls.

The file was now used in two areas:
- backend.php - containing an instance of
the mother object "TYPO3" used for the
backend scaffolding via ExtJS.
- old Prototype trees (loaded in DocumentTemplate)
introducing an API when using prototype as AJAX handler
when errors from AJAX requests occurred (was piped
to the ExtJS debug bar).

Removing the common.js file leads to
a) moving the "mother object" TYPO3 into backend.js
where all other ExtJS initialization for the TYPO3 Backend
is done.
b) "old" Trees using AJAX without the hook
for show error messages.

The toolbarmanager.js file was a base
helper function to open/hide toolbar items
which is now completely provided with
Bootstrap's dropdown functionality.

As a result, the prototype/scriptaculous
component is not needed in backend.php
anymore, and is removed by default.

Any extension that needs prototype in the
backend.php namespace can of course
re-enable scriptaculous.

Resolves: #62926
Releases: master
Change-Id: Icbbc048944360c3ac469c816ad07c4a2a112836b
Reviewed-on: http://review.typo3.org/34098
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Felix Kopp <felix-source@phorax.com>
Tested-by: Felix Kopp <felix-source@phorax.com>
typo3/sysext/backend/Classes/Controller/BackendController.php
typo3/sysext/backend/Classes/Template/DocumentTemplate.php
typo3/sysext/backend/Resources/Public/JavaScript/backend.js
typo3/sysext/backend/Resources/Public/JavaScript/common.js [deleted file]
typo3/sysext/backend/Resources/Public/JavaScript/toolbarmanager.js [deleted file]