Project

General

Profile

Actions

Bug #98067

closed

data-content is not respected within backend modals

Added by Thomas Schilp over 1 year ago. Updated 10 months ago.

Status:
Resolved
Priority:
Should have
Assignee:
-
Category:
Backend JavaScript
Target version:
Start date:
2022-08-02
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
11
PHP Version:
7.4
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Triggering a modal by an anchor element as described in https://docs.typo3.org/m/typo3/reference-coreapi/11.5/en-us/ApiOverview/JavaScript/Modules/Modals.html using

<a href="delete.php" class="t3js-modal-trigger" data-title="Delete" data-content="Really delete?">delete</a>

does not replace the standard "Are you shure?" with the content of "data-content".

All other data-* attributes decribed above (data-title, data-severity, data-button-close-text, data-button-ok-text ...) are replaced, but data-content is not.

I tried to trigger the modal within FLUID template in a backend module, so I do not know if triggering within Contoller actions works as expected. But either there is a bug that prevents the modal from using data-content or the API description is wrong.

Thanks a lot for helping and for working on TYPO3!

Actions #1

Updated by Andreas Kienast over 1 year ago

  • Sprint Focus set to On Location Sprint
Actions #2

Updated by Oliver Hader over 1 year ago

  • Sprint Focus deleted (On Location Sprint)
Actions #3

Updated by Gerrit Code Review 10 months ago

  • Status changed from New to Under Review

Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/79753

Actions #4

Updated by Gerrit Code Review 10 months ago

Patch set 1 for branch 12.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/79974

Actions #5

Updated by Andreas Fernandez 10 months ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #6

Updated by Gerrit Code Review 10 months ago

  • Status changed from Resolved to Under Review

Patch set 1 for branch 11.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/79961

Actions #7

Updated by Andreas Fernandez 10 months ago

  • Status changed from Under Review to Resolved
Actions

Also available in: Atom PDF