'TYPO3/CMS/Backend/Modal',
'TYPO3/CMS/Backend/Icons',
'TYPO3/CMS/Backend/Notification',
- 'TYPO3/CMS/Backend/Severity',
+ 'TYPO3/CMS/Backend/Severity'
], function ($, Modal, Icons, Notification, Severity) {
'use strict';
* Module: TYPO3/CMS/Backend/ImageManipulation
* Contains all logic for the image crop GUI
*/
-define(['jquery', 'TYPO3/CMS/Backend/Modal'], function ($, Modal) {
+define(['jquery', 'TYPO3/CMS/Backend/Modal', 'TYPO3/CMS/Backend/Severity'], function ($, Modal, Severity) {
/**
*
ImageManipulation.show = function() {
ImageManipulation.currentModal = Modal.loadUrl(
ImageManipulation.$trigger.data('image-name'),
- TYPO3.Severity.notice,
+ Severity.notice,
[],
ImageManipulation.$trigger.data('url'),
ImageManipulation.initializeCropperModal,
*/
/**
- * Module: TYPO3/CMS/Backend/Notification
- * Notification API for the TYPO3 backend
+ * Module: TYPO3/CMS/Backend/Severity
+ * Severity for the TYPO3 backend
*/
define(function () {
'use strict';
* Module: TYPO3/CMS/Filelist/FileDelete
* JavaScript for file delete
*/
-define(['jquery', 'TYPO3/CMS/Backend/Modal'], function ($, Modal) {
+define(['jquery', 'TYPO3/CMS/Backend/Modal', 'TYPO3/CMS/Backend/Severity'], function ($, Modal, Severity) {
$(document).on('click', '.t3js-filelist-delete', function(e) {
e.preventDefault();
var veriCode = $anchorElement.data('veriCode');
var deleteUrl = $anchorElement.data('deleteUrl') + '&file[delete][0][data]=' + encodeURIComponent(identifier) + '&vC=' + encodeURIComponent(veriCode);
if ($anchorElement.data('check')) {
- var $modal = Modal.confirm($anchorElement.data('title'), $anchorElement.data('content'), top.TYPO3.Severity.warning, [
+ var $modal = Modal.confirm($anchorElement.data('title'), $anchorElement.data('content'), Severity.warning, [
{
text: TYPO3.lang['buttons.confirm.delete_file.no'] || 'Cancel',
active: true,
* Folder selection
* @exports TYPO3/CMS/Recordlist/BrowseFolders
*/
-define(['jquery', 'TYPO3/CMS/Recordlist/ElementBrowser', 'TYPO3/CMS/Backend/Modal'], function ($, ElementBrowser, Modal) {
+define(['jquery', 'TYPO3/CMS/Recordlist/ElementBrowser', 'TYPO3/CMS/Backend/Modal', 'TYPO3/CMS/Backend/Severity'], function ($, ElementBrowser, Modal, Severity) {
'use strict';
$(function() {
$('.t3js-folderIdError').on('click', function (event) {
event.preventDefault();
- Modal.confirm('', $(this).data('message'), opener.TYPO3.Severity.error, [], []);
+ Modal.confirm('', $(this).data('message'), Severity.error, [], []);
});
});