diff --git a/typo3/sysext/backend/Classes/ClickMenu/ClickMenu.php b/typo3/sysext/backend/Classes/ClickMenu/ClickMenu.php
index 0871f8886274d550f78509dc7a3d92b1247587c7..a683c081db09fcfe982fdc855e6146ea248b1632 100644
--- a/typo3/sysext/backend/Classes/ClickMenu/ClickMenu.php
+++ b/typo3/sysext/backend/Classes/ClickMenu/ClickMenu.php
@@ -1099,7 +1099,7 @@ class ClickMenu {
 	 */
 	public function FILE_delete($path) {
 		$loc = 'top.content.list_frame';
-		if ($this->backendUser->jsConfirmation(4)) {
+		if ($this->backendUser->jsConfirmation(JsConfirmation::DELETE)) {
 			$conf = 'confirm(' . GeneralUtility::quoteJSvalue((sprintf($this->languageService->sL('LLL:EXT:lang/locallang_core.xlf:mess.delete'), basename($path)) . BackendUtility::referenceCount('_FILE', $path, ' (There are %s reference(s) to this file!)'))) . ')';
 		} else {
 			$conf = '1==1';
diff --git a/typo3/sysext/backend/Classes/Form/Container/SingleFieldContainer.php b/typo3/sysext/backend/Classes/Form/Container/SingleFieldContainer.php
index b31c7d0eb876ed2dd31cbcc675a9058c6adf1220..eb08985b060e75dfa00935d07828aaa8bbc576b1 100644
--- a/typo3/sysext/backend/Classes/Form/Container/SingleFieldContainer.php
+++ b/typo3/sysext/backend/Classes/Form/Container/SingleFieldContainer.php
@@ -16,6 +16,7 @@ namespace TYPO3\CMS\Backend\Form\Container;
 
 use TYPO3\CMS\Core\Imaging\Icon;
 use TYPO3\CMS\Core\Imaging\IconFactory;
+use TYPO3\CMS\Core\Type\Bitmask\JsConfirmation;
 use TYPO3\CMS\Core\Utility\GeneralUtility;
 use TYPO3\CMS\Core\Authentication\BackendUserAuthentication;
 use TYPO3\CMS\Backend\Form\Utility\FormEngineUtility;
@@ -117,7 +118,7 @@ class SingleFieldContainer extends AbstractContainer {
 			|| !empty($this->data['processedTca']['ctrl']['requestUpdate'])
 			&& GeneralUtility::inList(str_replace(' ', '', $this->data['processedTca']['ctrl']['requestUpdate']), $fieldName)
 		) {
-			if ($backendUser->jsConfirmation(1)) {
+			if ($backendUser->jsConfirmation(JsConfirmation::TYPE_CHANGE)) {
 				$alertMsgOnChange = 'if (confirm(TBE_EDITOR.labels.onChangeAlert) && TBE_EDITOR.checkSubmit(-1)){ TBE_EDITOR.submitForm() };';
 			} else {
 				$alertMsgOnChange = 'if (TBE_EDITOR.checkSubmit(-1)){ TBE_EDITOR.submitForm() };';