From e0de0a122f477d1e445f4f36c85c7462c5c66eb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Molakvo=C3=A6=20=28skjnldsv=29?= Date: Mon, 5 Nov 2018 17:27:09 +0100 Subject: [PATCH] Disable grid for ie MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- apps/files/list.php | 5 ++++- apps/files/templates/list.php | 3 +++ core/css/styles.scss | 1 + core/js/oc-dialogs.js | 10 +++++++++- 4 files changed, 17 insertions(+), 2 deletions(-) diff --git a/apps/files/list.php b/apps/files/list.php index f18dc5964b..23b94d9be2 100644 --- a/apps/files/list.php +++ b/apps/files/list.php @@ -26,10 +26,13 @@ $userSession = \OC::$server->getUserSession(); // TODO: move this to the generated config.js $publicUploadEnabled = $config->getAppValue('core', 'shareapi_allow_public_upload', 'yes'); $showgridview = $config->getUserValue($userSession->getUser()->getUID(), 'files', 'show_grid', true); +$isIE = \OCP\Util::isIE(); // renders the controls and table headers template $tmpl = new OCP\Template('files', 'list', ''); $tmpl->assign('publicUploadEnabled', $publicUploadEnabled); -$tmpl->assign('showgridview', $showgridview); +// gridview not available for ie +$tmpl->assign('showgridview', $showgridview && !$isIE); +$tmpl->assign('isIE', $isIE); $tmpl->printPage(); diff --git a/apps/files/templates/list.php b/apps/files/templates/list.php index 2740359436..2bc94ca7af 100644 --- a/apps/files/templates/list.php +++ b/apps/files/templates/list.php @@ -24,10 +24,13 @@ + + checked="checked" /> +