diff options
author | Thomas Müller <DeepDiver1975@users.noreply.github.com> | 2016-04-20 20:38:38 +0200 |
---|---|---|
committer | Thomas Müller <DeepDiver1975@users.noreply.github.com> | 2016-04-20 20:38:38 +0200 |
commit | 1ab27ddd4aba5cc74a7264b053378f057bacb8b6 (patch) | |
tree | d11c2dc58a8e4d8e3926789130f01984d473d8e9 /apps/files/js/filelist.js | |
parent | 1ef92621ab02d94af776a0fa4cd2cffec48589ef (diff) | |
parent | e4a8456d0176555e2f27f21b64ac9cbab9ec940a (diff) | |
download | nextcloud-server-1ab27ddd4aba5cc74a7264b053378f057bacb8b6.tar.gz nextcloud-server-1ab27ddd4aba5cc74a7264b053378f057bacb8b6.zip |
Merge pull request #24081 from owncloud/migrate-deprecated-jquery-v1-functions
migrate deprecated jQuery 1.x functions
Diffstat (limited to 'apps/files/js/filelist.js')
-rw-r--r-- | apps/files/js/filelist.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 79dc42da8f1..ea0f0666b4a 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -2593,7 +2593,7 @@ // fetch response from iframe response = data.result[0].body.innerText; } - var result=$.parseJSON(response); + var result = JSON.parse(response); if (typeof result[0] !== 'undefined' && result[0].status === 'success') { var file = result[0]; @@ -2906,7 +2906,7 @@ $(document).ready(function() { OCA.Files.FileList.lastAction(); } }); - $(window).unload(function () { + $(window).on('unload', function () { $(window).trigger('beforeunload'); }); |