From a3251415458e55d13695624bdebde4806dfc93de Mon Sep 17 00:00:00 2001 From: "John Molakvoæ (skjnldsv)" Date: Mon, 29 Nov 2021 17:06:01 +0100 Subject: Remove isIE and associated legacy scripts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- core/src/OC/dialogs.js | 14 +++----------- core/src/OC/util.js | 10 ---------- 2 files changed, 3 insertions(+), 21 deletions(-) (limited to 'core/src') diff --git a/core/src/OC/dialogs.js b/core/src/OC/dialogs.js index 12a56ff7555..82e4c932a68 100644 --- a/core/src/OC/dialogs.js +++ b/core/src/OC/dialogs.js @@ -304,20 +304,12 @@ const Dialogs = { multiselect = false } - // No grid for IE! - if (OC.Util.isIE()) { - self.$filePicker.find('#picker-view-toggle').remove() - self.$filePicker.find('#picker-filestable').removeClass('view-grid') - } + self.$filePicker.find('#picker-view-toggle').remove() + self.$filePicker.find('#picker-filestable').removeClass('view-grid') $('body').append(self.$filePicker) - self.$showGridView = $('input#picker-showgridview') - self.$showGridView.on('change', _.bind(self._onGridviewChange, self)) - - if (!OC.Util.isIE()) { - self._getGridSettings() - } + self._getGridSettings() var newButton = self.$filePicker.find('.actions.creatable .button-add') if (type === self.FILEPICKER_TYPE_CHOOSE && !options.allowDirectoryChooser) { diff --git a/core/src/OC/util.js b/core/src/OC/util.js index 7f348704831..cd7d7c42a3b 100644 --- a/core/src/OC/util.js +++ b/core/src/OC/util.js @@ -21,7 +21,6 @@ * */ -import $ from 'jquery' import moment from 'moment' import History from './util-history' @@ -141,15 +140,6 @@ export default { return moment(timestamp).fromNow() }, - /** - * Returns whether this is IE - * - * @returns {bool} true if this is IE, false otherwise - */ - isIE() { - return $('html').hasClass('ie') - }, - /** * Returns the width of a generic browser scrollbar * -- cgit v1.2.3