Commit a208b81e authored by Frank Nägler's avatar Frank Nägler Committed by Markus Klein
Browse files

[TASK] Remove namespace and name of AMD modules

The namespace and name of an AMD module is not needed.
The resolving of names works without the defined name of a module
and should be removed to anonymize the modules.

Resolves: #70607
Releases: master
Change-Id: I9e1a81d30de7764ffbccf0b0985b55ed5b6cb96d
Reviewed-on: http://review.typo3.org/44002


Reviewed-by: Wouter Wolters's avatarWouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters's avatarWouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Markus Klein's avatarMarkus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein's avatarMarkus Klein <markus.klein@typo3.org>
parent 690ef9ce
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
/** /**
* AjaxDataHandler - Javascript functions to work with AJAX and interacting with tce_db.php * AjaxDataHandler - Javascript functions to work with AJAX and interacting with tce_db.php
*/ */
define('TYPO3/CMS/Backend/AjaxDataHandler', ['jquery', 'TYPO3/CMS/Backend/Notification', 'TYPO3/CMS/Backend/Modal'], function ($) { define(['jquery', 'TYPO3/CMS/Backend/Notification', 'TYPO3/CMS/Backend/Modal'], function ($) {
'use strict'; 'use strict';
var AjaxDataHandler = {}; var AjaxDataHandler = {};
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* Javascript container used to load the clickmenu via AJAX * Javascript container used to load the clickmenu via AJAX
* to render the result in a layer next to the mouse cursor * to render the result in a layer next to the mouse cursor
*/ */
define('TYPO3/CMS/Backend/ClickMenu', ['jquery'], function($) { define(['jquery'], function($) {
var ClickMenu = { var ClickMenu = {
mousePos: { mousePos: {
...@@ -274,4 +274,4 @@ function showClickmenu_raw(url) { ...@@ -274,4 +274,4 @@ function showClickmenu_raw(url) {
} else { } else {
TYPO3.ClickMenu.fetch(url); TYPO3.ClickMenu.fetch(url);
} }
} }
\ No newline at end of file
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
/** /**
* API for context help. * API for context help.
*/ */
define('TYPO3/CMS/Backend/ContextHelp', ['jquery', 'TYPO3/CMS/Backend/Popover', 'bootstrap'], function($) { define(['jquery', 'TYPO3/CMS/Backend/Popover', 'bootstrap'], function($) {
/** /**
* The main ContextHelp object * The main ContextHelp object
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* contains all logic for the date time picker used in FormEngine * contains all logic for the date time picker used in FormEngine
* and EXT:belog and EXT:scheduler * and EXT:belog and EXT:scheduler
*/ */
define('TYPO3/CMS/Backend/DateTimePicker', ['jquery'], function ($) { define(['jquery'], function ($) {
var DateTimePicker = { var DateTimePicker = {
options: { options: {
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
/** /**
* The debug console shown at the bottom of the backend * The debug console shown at the bottom of the backend
*/ */
define('TYPO3/CMS/Backend/DebugConsole', ['jquery'], function ($) { define(['jquery'], function ($) {
var DebugConsole = { var DebugConsole = {
$consoleDom: null, $consoleDom: null,
settings: { settings: {
...@@ -262,4 +262,4 @@ define('TYPO3/CMS/Backend/DebugConsole', ['jquery'], function ($) { ...@@ -262,4 +262,4 @@ define('TYPO3/CMS/Backend/DebugConsole', ['jquery'], function ($) {
TYPO3.DebugConsole = DebugConsole; TYPO3.DebugConsole = DebugConsole;
return DebugConsole; return DebugConsole;
}(); }();
}); });
\ No newline at end of file
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
/** /**
* Calculates the height of the docHeader and hides it upon scrolling * Calculates the height of the docHeader and hides it upon scrolling
*/ */
define('TYPO3/CMS/Backend/DocumentHeader', ['jquery'], function($) { define(['jquery'], function($) {
"use strict"; "use strict";
var DocumentHeader = { var DocumentHeader = {
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* JavaScript RequireJS module called "TYPO3/CMS/Backend/DragUploader" * JavaScript RequireJS module called "TYPO3/CMS/Backend/DragUploader"
* *
*/ */
define('TYPO3/CMS/Backend/DragUploader', ['jquery', 'moment', 'nprogress', 'TYPO3/CMS/Lang/Lang', 'TYPO3/CMS/Backend/Modal'], function($, moment, NProgress) { define(['jquery', 'moment', 'nprogress', 'TYPO3/CMS/Lang/Lang', 'TYPO3/CMS/Backend/Modal'], function($, moment, NProgress) {
/** /**
* Array of files which are asked for being overridden * Array of files which are asked for being overridden
......
...@@ -28,7 +28,7 @@ var setFormValueOpenBrowser ...@@ -28,7 +28,7 @@ var setFormValueOpenBrowser
,setFormValue_getFObj; ,setFormValue_getFObj;
define('TYPO3/CMS/Backend/FormEngine', ['jquery'], function ($) { define(['jquery'], function ($) {
// main options // main options
var FormEngine = { var FormEngine = {
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
* which can contain one ore more sections * which can contain one ore more sections
*/ */
define('TYPO3/CMS/Backend/FormEngineFlexForm', ['jquery', 'TYPO3/CMS/Backend/FormEngine'], function ($) { define(['jquery', 'TYPO3/CMS/Backend/FormEngine'], function ($) {
TYPO3.FormEngine.FlexFormElement = function(el, options) { TYPO3.FormEngine.FlexFormElement = function(el, options) {
var me = this; // avoid scope issues var me = this; // avoid scope issues
...@@ -216,4 +216,4 @@ define('TYPO3/CMS/Backend/FormEngineFlexForm', ['jquery', 'TYPO3/CMS/Backend/For ...@@ -216,4 +216,4 @@ define('TYPO3/CMS/Backend/FormEngineFlexForm', ['jquery', 'TYPO3/CMS/Backend/For
// run the flexform functions on all containers (which contains one or more sections) // run the flexform functions on all containers (which contains one or more sections)
$('.t3-flex-container').t3FormEngineFlexFormElement(); $('.t3-flex-container').t3FormEngineFlexFormElement();
}); });
}); });
\ No newline at end of file
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
/** /**
* Functionality to load suggest functionality * Functionality to load suggest functionality
*/ */
define('TYPO3/CMS/Backend/FormEngineSuggest', ['jquery', 'jquery/autocomplete'], function ($) { define(['jquery', 'jquery/autocomplete'], function ($) {
var initialize = function($searchField) { var initialize = function($searchField) {
var $containerElement = $searchField.closest('.t3-form-suggest-container'); var $containerElement = $searchField.closest('.t3-form-suggest-container');
var table = $searchField.data('table'), var table = $searchField.data('table'),
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* contains all JS functions related to TYPO3 TCEforms/FormEngineValidation * contains all JS functions related to TYPO3 TCEforms/FormEngineValidation
* @internal * @internal
*/ */
define('TYPO3/CMS/Backend/FormEngineValidation', ['jquery', 'TYPO3/CMS/Backend/FormEngine'], function ($, FormEngine) { define(['jquery', 'TYPO3/CMS/Backend/FormEngine'], function ($, FormEngine) {
/** /**
* The main FormEngineValidation object * The main FormEngineValidation object
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
/** /**
* contains all logic for the image crop GUI * contains all logic for the image crop GUI
*/ */
define('TYPO3/CMS/Backend/ImageManipulation', ['jquery', 'TYPO3/CMS/Backend/Modal'], function ($) { define(['jquery', 'TYPO3/CMS/Backend/Modal'], function ($) {
var ImageManipulation = { var ImageManipulation = {
margin: 20, margin: 20,
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
/** /**
* JavaScript replacement for Legacy CSS Classes * JavaScript replacement for Legacy CSS Classes
*/ */
define('TYPO3/CMS/Backend/LegacyCssClasses', ['jquery'], function($) { define(['jquery'], function($) {
var LegacyCssClasses = { var LegacyCssClasses = {
replacements: [ replacements: [
{ {
...@@ -54,4 +54,4 @@ define('TYPO3/CMS/Backend/LegacyCssClasses', ['jquery'], function($) { ...@@ -54,4 +54,4 @@ define('TYPO3/CMS/Backend/LegacyCssClasses', ['jquery'], function($) {
return LegacyCssClasses; return LegacyCssClasses;
}(); }();
}); });
\ No newline at end of file
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
/** /**
* Global search to deal with everything in the backend that is search-related * Global search to deal with everything in the backend that is search-related
*/ */
define('TYPO3/CMS/Backend/LiveSearch', ['jquery', 'jquery/autocomplete', 'TYPO3/CMS/Backend/jquery.clearable'], function ($) { define(['jquery', 'jquery/autocomplete', 'TYPO3/CMS/Backend/jquery.clearable'], function ($) {
var containerSelector = '#typo3-cms-backend-backend-toolbaritems-livesearchtoolbaritem'; var containerSelector = '#typo3-cms-backend-backend-toolbaritems-livesearchtoolbaritem';
var searchFieldSelector = '.t3js-topbar-navigation-search-field'; var searchFieldSelector = '.t3js-topbar-navigation-search-field';
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
/** /**
* JavaScript module for the backend login form * JavaScript module for the backend login form
*/ */
define('TYPO3/CMS/Backend/Login', ['jquery', 'TYPO3/CMS/Backend/jquery.clearable', 'bootstrap'], function($) { define(['jquery', 'TYPO3/CMS/Backend/jquery.clearable', 'bootstrap'], function($) {
var BackendLogin = { var BackendLogin = {
options: { options: {
loginForm: '#typo3-login-form', loginForm: '#typo3-login-form',
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* Task that periodically checks if a blocking event in the backend occurred and * Task that periodically checks if a blocking event in the backend occurred and
* displays a proper dialog to the user. * displays a proper dialog to the user.
*/ */
define('TYPO3/CMS/Backend/LoginRefresh', ['jquery', 'bootstrap'], function($) { define(['jquery', 'bootstrap'], function($) {
var LoginRefresh = { var LoginRefresh = {
identifier: { identifier: {
loginrefresh: 't3-modal-loginrefresh', loginrefresh: 't3-modal-loginrefresh',
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* API for modal windows powered by Twitter Bootstrap. * API for modal windows powered by Twitter Bootstrap.
* This module depends on TYPO3/CMS/Backend/Notification due to top.TYPO3.Severity. * This module depends on TYPO3/CMS/Backend/Notification due to top.TYPO3.Severity.
*/ */
define('TYPO3/CMS/Backend/Modal', ['jquery', 'TYPO3/CMS/Backend/Notification', 'bootstrap'], function($) { define(['jquery', 'TYPO3/CMS/Backend/Notification', 'bootstrap'], function($) {
/** /**
* The main object of the modal API * The main object of the modal API
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* Notification API for the TYPO3 backend * Notification API for the TYPO3 backend
*/ */
define('TYPO3/CMS/Backend/Notification', ['jquery'], function ($) { define(['jquery'], function ($) {
/** /**
* Severity object * Severity object
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
/** /**
* Javascript for show the online media dialog * Javascript for show the online media dialog
*/ */
define('TYPO3/CMS/Backend/OnlineMedia', ['jquery', 'nprogress', 'TYPO3/CMS/Lang/Lang', 'TYPO3/CMS/Backend/Modal'], function($, NProgress) { define(['jquery', 'nprogress', 'TYPO3/CMS/Lang/Lang', 'TYPO3/CMS/Backend/Modal'], function($, NProgress) {
"use strict"; "use strict";
var OnlineMediaPlugin = function(element) { var OnlineMediaPlugin = function(element) {
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
/** /**
* JavaScript implementations for page actions * JavaScript implementations for page actions
*/ */
define('TYPO3/CMS/Backend/PageActions', ['jquery'], function($) { define(['jquery'], function($) {
'use strict'; 'use strict';
var PageActions = { var PageActions = {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment