[TASK] Replace confirm sys_notes delete link 46/41546/2
authorFrank Nägler <typo3@naegler.net>
Fri, 17 Jul 2015 07:40:50 +0000 (09:40 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Fri, 17 Jul 2015 08:27:48 +0000 (10:27 +0200)
Resolves: #68253
Releases: master
Change-Id: I576de810e37f0d26d10a62c583d3b94fb9c52fc7
Reviewed-on: http://review.typo3.org/41546
Reviewed-by: Susanne Moog <typo3@susannemoog.de>
Tested-by: Susanne Moog <typo3@susannemoog.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/sys_note/Resources/Private/Templates/Note/List.html

index 414fe2e..3a74347 100644 (file)
@@ -28,7 +28,9 @@
                                                </f:if>
 
                                                <div class="right icons">
-                                                       <f:be.buttons.icon uri="{notes:deleteLink(id:note.uid)}" icon="actions-edit-delete" additionalAttributes="{onClick: 'return confirm(\'{f:translate(key: \'LLL:EXT:lang/locallang_alt_doc.xlf:deleteWarning\')}\');'}" />
+                                                       <f:be.buttons.icon uri="{notes:deleteLink(id:note.uid)}"
+                                                                                          icon="actions-edit-delete"
+                                                                                          additionalAttributes="{class: 't3js-modal-trigger', data-severity: 'warning', data-title: '{f:translate(key: \'LLL:EXT:lang/locallang_common.xlf:delete\')}', data-content: '{f:translate(key: \'LLL:EXT:lang/locallang_alt_doc.xlf:deleteWarning\')}', data-button-close-text: '{f:translate(key: \'LLL:EXT:lang/locallang_common.xlf:cancel\')}'}" />
                                                        <f:be.buttons.icon uri="{notes:editLink(id:note.uid)}" icon="actions-document-open" />
                                                </div>
                                        </div>
@@ -44,4 +46,4 @@
                </div>
 
        </f:if>
-</f:section>
\ No newline at end of file
+</f:section>