]> source.dussan.org Git - nextcloud-server.git/commitdiff
limit filepicker height to screen
authorRobin Appelman <robin@icewind.nl>
Fri, 25 Nov 2016 19:50:09 +0000 (20:50 +0100)
committerRobin Appelman <robin@icewind.nl>
Fri, 25 Nov 2016 19:54:08 +0000 (20:54 +0100)
Signed-off-by: Robin Appelman <robin@icewind.nl>
core/js/oc-dialogs.js

index 3b5c1ae719992037e36ca333375b717b8de74801..26f06cfbb273cdabf47b156996e292b221f12302 100644 (file)
@@ -233,7 +233,7 @@ var OCdialogs = {
                                closeOnEscape: true,
                                // max-width of 600
                                width: Math.min((4/5)*$(document).width(), 600),
-                               height: 420,
+                               height: Math.min((4 / 5) * $(document).height(), 500),
                                modal: modal,
                                buttons: buttonlist,
                                close: function() {
@@ -253,10 +253,6 @@ var OCdialogs = {
                        } else {
                                buttonEnableDisable.prop("disabled", true);
                        }
-
-                       if (!OC.Util.hasSVGSupport()) {
-                               OC.Util.replaceSVG(self.$filePicker.parent());
-                       }
                })
                .fail(function(status, error) {
                        // If the method is called while navigating away
@@ -835,9 +831,6 @@ var OCdialogs = {
                        });
 
                        self.$filelist.removeClass('icon-loading');
-                       if (!OC.Util.hasSVGSupport()) {
-                               OC.Util.replaceSVG(self.$filePicker.find('.dirtree'));
-                       }
                });
        },
        /**