summaryrefslogtreecommitdiffstats
path: root/core/src/OC
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2021-11-29 17:06:01 +0100
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2021-11-30 13:03:08 +0100
commita3251415458e55d13695624bdebde4806dfc93de (patch)
tree4c94008651e91d2e955e8a083b35fb311c59068b /core/src/OC
parent2c3cf86ad31e20504bea39bad0bf912e946e2c5e (diff)
downloadnextcloud-server-a3251415458e55d13695624bdebde4806dfc93de.tar.gz
nextcloud-server-a3251415458e55d13695624bdebde4806dfc93de.zip
Remove isIE and associated legacy scripts
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'core/src/OC')
-rw-r--r--core/src/OC/dialogs.js14
-rw-r--r--core/src/OC/util.js10
2 files changed, 3 insertions, 21 deletions
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'
@@ -142,15 +141,6 @@ export default {
},
/**
- * 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
*
* @returns {int} width of scrollbar