[TASK] Set correct default classes for buttons in modal 92/41492/3
authorFrank Nägler <typo3@naegler.net>
Thu, 16 Jul 2015 16:55:33 +0000 (18:55 +0200)
committerSusanne Moog <typo3@susannemoog.de>
Thu, 16 Jul 2015 19:21:15 +0000 (21:21 +0200)
Resolves: #68241
Releases: master
Change-Id: Id951c9ff0ea8d7c46dd65843221b59bc63f47db6
Reviewed-on: http://review.typo3.org/41492
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Susanne Moog <typo3@susannemoog.de>
Tested-by: Susanne Moog <typo3@susannemoog.de>
typo3/sysext/backend/Resources/Public/JavaScript/Modal.js

index cfdbae8..467e333 100644 (file)
@@ -264,12 +264,14 @@ define('TYPO3/CMS/Backend/Modal', ['jquery', 'TYPO3/CMS/Backend/Notification', '
                                {
                                        text: $element.data('button-close-text') || 'Close',
                                        active: true,
+                                       btnClass: 'btn-default',
                                        trigger: function() {
                                                $element.trigger('modal-dismiss');
                                        }
                                },
                                {
                                        text: $element.data('button-ok-text') || 'OK',
+                                       btnClass: 'btn-primary',
                                        trigger: function() {
                                                $element.trigger('modal-dismiss');
                                                self.location.href = $element.data('href') || $element.attr('href');