aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2016-11-25 20:50:09 +0100
committerRobin Appelman <robin@icewind.nl>2016-11-25 20:54:08 +0100
commita8ce10bba33710d4b72922f6ee8856d4c25cdb32 (patch)
treef12b1bb8a7f714e70fceaeb1a70ffe1387d19256
parentf4d79485d72354c4f0c88d5291c04ad1cbc0de0c (diff)
downloadnextcloud-server-a8ce10bba33710d4b72922f6ee8856d4c25cdb32.tar.gz
nextcloud-server-a8ce10bba33710d4b72922f6ee8856d4c25cdb32.zip
limit filepicker height to screen
Signed-off-by: Robin Appelman <robin@icewind.nl>
-rw-r--r--core/js/oc-dialogs.js9
1 files changed, 1 insertions, 8 deletions
diff --git a/core/js/oc-dialogs.js b/core/js/oc-dialogs.js
index 3b5c1ae7199..26f06cfbb27 100644
--- a/core/js/oc-dialogs.js
+++ b/core/js/oc-dialogs.js
@@ -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'));
- }
});
},
/**