Merge pull request #4636 from nextcloud/jquery-migrate-browser

Remove dependency on jquery-migrate.js for browser detection
This commit is contained in:
Lukas Reschke 2017-05-02 17:01:27 +02:00 committed by GitHub
commit 68a1902586

View 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');