aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/js/files.js
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-08-19 09:54:05 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-08-19 09:54:05 +0200
commit9f6c33abe9cb471f0201efcdd01818048658c4eb (patch)
treeab513439af64507a530c989b00d6c43707109656 /apps/files/js/files.js
parent127b6e2f3f83c61437a0254ebeaea3da64a5b582 (diff)
parent51c3a3ddaf7efd4dda602c693d5670498978d4fa (diff)
downloadnextcloud-server-9f6c33abe9cb471f0201efcdd01818048658c4eb.tar.gz
nextcloud-server-9f6c33abe9cb471f0201efcdd01818048658c4eb.zip
Merge pull request #18339 from owncloud/update-jquery-visibility
update jquery-visibility in files app
Diffstat (limited to 'apps/files/js/files.js')
-rw-r--r--apps/files/js/files.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/js/files.js b/apps/files/js/files.js
index 55fdb96ebda..90c8ee67757 100644
--- a/apps/files/js/files.js
+++ b/apps/files/js/files.js
@@ -246,12 +246,12 @@
// Use jquery-visibility to de-/re-activate file stats sync
if ($.support.pageVisibility) {
$(document).on({
- 'show.visibility': function() {
+ 'show': function() {
if (!updateStorageStatisticsIntervalId) {
updateStorageStatisticsIntervalId = setInterval(func, updateStorageStatisticsInterval);
}
},
- 'hide.visibility': function() {
+ 'hide': function() {
clearInterval(updateStorageStatisticsIntervalId);
updateStorageStatisticsIntervalId = 0;
}