]> source.dussan.org Git - nextcloud-server.git/commitdiff
Remove dependency on jquery-migrate.js for browser detection 4636/head
authorMorris Jobke <hey@morrisjobke.de>
Mon, 1 May 2017 20:52:53 +0000 (17:52 -0300)
committerMorris Jobke <hey@morrisjobke.de>
Mon, 1 May 2017 20:53:48 +0000 (17:53 -0300)
* ref #4628

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
apps/files/js/file-upload.js

index 75d9d0ebdfc59b41659bae9d92ac4f22308c03e5..1c5758ca50b68175ab546ddbc7693a531bbbb91f 100644 (file)
@@ -1060,7 +1060,7 @@ OC.Uploader.prototype = _.extend({
                                        // dropping a folder in firefox doesn't cause a drop event
                                        // this is simulated by simply invoke disabling all classes
                                        // once no dragover event isn't noticed anymore
-                                       if ($.browser['mozilla']) {
+                                       if (/Firefox/i.test(navigator.userAgent)) {
                                                disableClassOnFirefox();
                                        }
                                        $('#emptycontent .icon-folder').addClass('icon-filetype-folder-drag-accept');