[BUGFIX] Fix maximum height of preview links dialog 11/49511/5
authorAlexander Opitz <opitz.alexander@googlemail.com>
Thu, 18 Aug 2016 15:50:02 +0000 (17:50 +0200)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Fri, 2 Dec 2016 10:57:09 +0000 (11:57 +0100)
If there are many previewable languages on one page the modal dialog
now will have a scroll bar for more than 4 entries, so it doesn't
break the UI any more.

Add 'modal-inner-scroll' class to modal 'show' call to let the
JS framework handle the maximum height / scroll behavior.

Resolves: #69637
Releases: master, 7.6
Change-Id: I59f91c4364d0d611c5822492b9ace513b1a45a33
Reviewed-on: https://review.typo3.org/49511
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Gianluigi Martino <gmartino27@gmail.com>
Tested-by: Gianluigi Martino <gmartino27@gmail.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
typo3/sysext/workspaces/Resources/Public/JavaScript/Backend.js

index 5537f25..10f44de 100644 (file)
@@ -1119,7 +1119,7 @@ define([
                        ])
                ).done(function(response) {
                        var result = response[0].result,
-                               $list = $('<dl />');
+                       $list = $('<dl />');
 
                        $.each(result, function(language, url) {
                                $list.append(
@@ -1142,7 +1142,8 @@ define([
                                        trigger: function() {
                                                Modal.currentModal.trigger('modal-dismiss');
                                        }
-                               }]
+                               }],
+                               ['modal-inner-scroll']
                        );
                });
        };