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 @@
/**
* 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';
var AjaxDataHandler = {};
......
......@@ -15,7 +15,7 @@
* Javascript container used to load the clickmenu via AJAX
* to render the result in a layer next to the mouse cursor
*/
define('TYPO3/CMS/Backend/ClickMenu', ['jquery'], function($) {
define(['jquery'], function($) {
var ClickMenu = {
mousePos: {
......
......@@ -14,7 +14,7 @@
/**
* 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
......
......@@ -15,7 +15,7 @@
* contains all logic for the date time picker used in FormEngine
* and EXT:belog and EXT:scheduler
*/
define('TYPO3/CMS/Backend/DateTimePicker', ['jquery'], function ($) {
define(['jquery'], function ($) {
var DateTimePicker = {
options: {
......
......@@ -14,7 +14,7 @@
/**
* The debug console shown at the bottom of the backend
*/
define('TYPO3/CMS/Backend/DebugConsole', ['jquery'], function ($) {
define(['jquery'], function ($) {
var DebugConsole = {
$consoleDom: null,
settings: {
......
......@@ -14,7 +14,7 @@
/**
* Calculates the height of the docHeader and hides it upon scrolling
*/
define('TYPO3/CMS/Backend/DocumentHeader', ['jquery'], function($) {
define(['jquery'], function($) {
"use strict";
var DocumentHeader = {
......
......@@ -15,7 +15,7 @@
* 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
......
......@@ -28,7 +28,7 @@ var setFormValueOpenBrowser
,setFormValue_getFObj;
define('TYPO3/CMS/Backend/FormEngine', ['jquery'], function ($) {
define(['jquery'], function ($) {
// main options
var FormEngine = {
......
......@@ -20,7 +20,7 @@
* 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) {
var me = this; // avoid scope issues
......
......@@ -14,7 +14,7 @@
/**
* Functionality to load suggest functionality
*/
define('TYPO3/CMS/Backend/FormEngineSuggest', ['jquery', 'jquery/autocomplete'], function ($) {
define(['jquery', 'jquery/autocomplete'], function ($) {
var initialize = function($searchField) {
var $containerElement = $searchField.closest('.t3-form-suggest-container');
var table = $searchField.data('table'),
......
......@@ -15,7 +15,7 @@
* contains all JS functions related to TYPO3 TCEforms/FormEngineValidation
* @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
......
......@@ -14,7 +14,7 @@
/**
* 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 = {
margin: 20,
......
......@@ -14,7 +14,7 @@
/**
* JavaScript replacement for Legacy CSS Classes
*/
define('TYPO3/CMS/Backend/LegacyCssClasses', ['jquery'], function($) {
define(['jquery'], function($) {
var LegacyCssClasses = {
replacements: [
{
......
......@@ -14,7 +14,7 @@
/**
* 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 searchFieldSelector = '.t3js-topbar-navigation-search-field';
......
......@@ -14,7 +14,7 @@
/**
* 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 = {
options: {
loginForm: '#typo3-login-form',
......
......@@ -15,7 +15,7 @@
* Task that periodically checks if a blocking event in the backend occurred and
* displays a proper dialog to the user.
*/
define('TYPO3/CMS/Backend/LoginRefresh', ['jquery', 'bootstrap'], function($) {
define(['jquery', 'bootstrap'], function($) {
var LoginRefresh = {
identifier: {
loginrefresh: 't3-modal-loginrefresh',
......
......@@ -15,7 +15,7 @@
* API for modal windows powered by Twitter Bootstrap.
* 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
......
......@@ -15,7 +15,7 @@
* Notification API for the TYPO3 backend
*/
define('TYPO3/CMS/Backend/Notification', ['jquery'], function ($) {
define(['jquery'], function ($) {
/**
* Severity object
......
......@@ -14,7 +14,7 @@
/**
* 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";
var OnlineMediaPlugin = function(element) {
......
......@@ -14,7 +14,7 @@
/**
* JavaScript implementations for page actions
*/
define('TYPO3/CMS/Backend/PageActions', ['jquery'], function($) {
define(['jquery'], function($) {
'use strict';
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