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 @@
/**
* API for popover windows powered by Twitter Bootstrap.
*/
define('TYPO3/CMS/Backend/Popover', ['jquery', 'bootstrap'], function($) {
define(['jquery', 'bootstrap'], function($) {
/**
* the main popover object
......
......@@ -14,7 +14,7 @@
/**
* Initializes global handling of split buttons.
*/
define('TYPO3/CMS/Backend/SplitButtons', ['jquery'], function($) {
define(['jquery'], function($) {
"use strict";
var SplitButtons = {
......
......@@ -16,7 +16,7 @@
* TYPO3.Storage.Client and the Backend Users "uc",
* available via TYPO3.Storage.Persistent
*/
define('TYPO3/CMS/Backend/Storage', ['jquery'], function ($) {
define(['jquery'], function ($) {
var Storage = {
Client: {},
Persistent: {
......
......@@ -15,7 +15,7 @@
* This class handle the tabs in the TYPO3 backend.
* It stores the last active tab and open it again after a reload,
*/
define('TYPO3/CMS/Backend/Tabs', ['jquery', 'TYPO3/CMS/Backend/Storage', 'bootstrap'], function ($) {
define(['jquery', 'TYPO3/CMS/Backend/Storage', 'bootstrap'], function ($) {
/**
* Tabs helper
......
......@@ -14,7 +14,7 @@
/**
* Toggle the search toolbox
*/
define('TYPO3/CMS/Backend/ToggleSearchToolbox', ['jquery', 'TYPO3/CMS/Backend/DocumentHeader', 'TYPO3/CMS/Backend/jquery.clearable'], function($, DocumentHeader) {
define(['jquery', 'TYPO3/CMS/Backend/DocumentHeader', 'TYPO3/CMS/Backend/jquery.clearable'], function($, DocumentHeader) {
"use strict";
$(function() {
......
......@@ -15,7 +15,7 @@
* main functionality for clearing caches via the top bar
* reloading the clear cache icon
*/
define('TYPO3/CMS/Backend/Toolbar/ClearCacheMenu', ['jquery'], function($) {
define(['jquery'], function($) {
var ClearCacheMenu = {
$spinnerElement: $('<span>', {
......@@ -77,4 +77,4 @@ define('TYPO3/CMS/Backend/Toolbar/ClearCacheMenu', ['jquery'], function($) {
TYPO3.ClearCacheMenu = ClearCacheMenu;
return ClearCacheMenu;
}();
});
\ No newline at end of file
});
......@@ -15,7 +15,7 @@
* shortcut menu logic to add new shortcut, remove a shortcut
* and edit a shortcut
*/
define('TYPO3/CMS/Backend/Toolbar/ShortcutMenu', ['jquery'], function($) {
define(['jquery'], function($) {
var ShortcutMenu = {
$spinnerElement: $('<span>', {
......
......@@ -14,7 +14,7 @@
/**
* System information menu handler
*/
define('TYPO3/CMS/Backend/Toolbar/SystemInformationMenu', ['jquery', 'TYPO3/CMS/Backend/Storage'], function($) {
define(['jquery', 'TYPO3/CMS/Backend/Storage'], function($) {
var SystemInformationMenu = {
identifier: {
containerSelector: '#typo3-cms-backend-backend-toolbaritems-systeminformationtoolbaritem',
......
......@@ -14,7 +14,7 @@
/**
* API for tooltip windows powered by Twitter Bootstrap.
*/
define('TYPO3/CMS/Backend/Tooltip', ['jquery', 'bootstrap'], function($) {
define(['jquery', 'bootstrap'], function($) {
/**
* The main tooltip object
......
......@@ -14,7 +14,7 @@
/**
* JavaScript module for the UsernamePasswordLoginProvider
*/
define('TYPO3/CMS/Backend/UserPassLogin', ['jquery', 'TYPO3/CMS/Backend/Login'], function($, Login) {
define(['jquery', 'TYPO3/CMS/Backend/Login'], function($, Login) {
var UserPassLogin = {
options: {
usernameField: '.t3js-login-username-field',
......
......@@ -14,7 +14,7 @@
/**
* Utility helper
*/
define('TYPO3/CMS/Backend/Utility', ['jquery'], function($) {
define(['jquery'], function($) {
/**
* The main Utility object
......
......@@ -14,7 +14,7 @@
/**
* ValueSlider
*/
define('TYPO3/CMS/Backend/ValueSlider', ['jquery', 'twbs/bootstrap-slider'], function($) {
define(['jquery', 'twbs/bootstrap-slider'], function($) {
/**
* ValueSlider object
*
......
......@@ -14,7 +14,7 @@
/**
* Colorpicker JavaScript
*/
define('TYPO3/CMS/Backend/Wizard/Colorpicker', ['jquery'], function ($) {
define(['jquery'], function ($) {
var Colorpicker = {
options: {}
......@@ -61,4 +61,4 @@ define('TYPO3/CMS/Backend/Wizard/Colorpicker', ['jquery'], function ($) {
});
return Colorpicker;
});
\ No newline at end of file
});
......@@ -14,7 +14,7 @@
/**
* JavaScript for backend user listing
*/
define('TYPO3/CMS/Beuser/BackendUserListing', ['jquery', 'TYPO3/CMS/Backend/jquery.clearable'], function($) {
define(['jquery', 'TYPO3/CMS/Backend/jquery.clearable'], function($) {
var $searchFields = $('#tx_Beuser_username');
var searchResultShown = ('' !== $searchFields.first().val());
......@@ -28,4 +28,4 @@ define('TYPO3/CMS/Beuser/BackendUserListing', ['jquery', 'TYPO3/CMS/Backend/jque
}
});
});
\ No newline at end of file
});
......@@ -14,7 +14,7 @@
/**
* Javascript functions regarding the permissions module
*/
define('TYPO3/CMS/Beuser/Permissions', ['jquery'], function($) {
define(['jquery'], function($) {
var Permissions = {
options: {
......
......@@ -14,7 +14,7 @@
/**
* This module handle the QueryGenerator forms.
*/
define('TYPO3/CMS/Core/QueryGenerator', ['jquery', 'TYPO3/CMS/Backend/DateTimePicker', 'TYPO3/CMS/Backend/jquery.clearable'], function ($) {
define(['jquery', 'TYPO3/CMS/Backend/DateTimePicker', 'TYPO3/CMS/Backend/jquery.clearable'], function ($) {
/**
* The QueryGenerator AMD module
......
......@@ -14,7 +14,7 @@
/**
* JavaScript module for ext:documentation
*/
define('TYPO3/CMS/Documentation/Main', ['jquery', 'datatables', 'TYPO3/CMS/Backend/jquery.clearable'], function($) {
define(['jquery', 'datatables', 'TYPO3/CMS/Backend/jquery.clearable'], function($) {
var Documentation = {
dataTable: null,
......@@ -75,4 +75,4 @@ define('TYPO3/CMS/Documentation/Main', ['jquery', 'datatables', 'TYPO3/CMS/Backe
});
});
});
\ No newline at end of file
});
......@@ -15,7 +15,7 @@
* JavaScript RequireJS module called "TYPO3/CMS/Filelist/FileList"
*
*/
define('TYPO3/CMS/Filelist/FileList', ['jquery'], function($) {
define(['jquery'], function($) {
$('a.filelist-file-title').click(function(event) {
event.preventDefault();
......
......@@ -15,7 +15,7 @@
* JavaScript RequireJS module called "TYPO3/CMS/Backend/FileListLocalisation"
*
*/
define('TYPO3/CMS/Filelist/FileListLocalisation', ['jquery'], function($) {
define(['jquery'], function($) {
$('a.filelist-translationToggler').click(function(event) {
var id = $(this).attr('data-fileid');
......@@ -23,4 +23,4 @@ define('TYPO3/CMS/Filelist/FileListLocalisation', ['jquery'], function($) {
});
return null;
});
\ No newline at end of file
});
......@@ -14,7 +14,7 @@
/**
* JavaScript for file search
*/
define('TYPO3/CMS/Filelist/FileSearch', ['jquery', 'TYPO3/CMS/Backend/jquery.clearable'], function($) {
define(['jquery', 'TYPO3/CMS/Backend/jquery.clearable'], function($) {
var $searchFields = $('input[name="tx_filelist_file_filelistlist[searchWord]"]');
var searchResultShown = ('' !== $searchFields.first().val());
......@@ -28,4 +28,4 @@ define('TYPO3/CMS/Filelist/FileSearch', ['jquery', 'TYPO3/CMS/Backend/jquery.cle
}
});
});
\ No newline at end of file
});
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