summaryrefslogtreecommitdiffstats
path: root/apps/files/js/files.js
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-08-17 09:39:21 +0200
committerMorris Jobke <hey@morrisjobke.de>2015-08-17 09:39:21 +0200
commit51c3a3ddaf7efd4dda602c693d5670498978d4fa (patch)
tree8d17c2bd066200f968befd78228327dc01f43d73 /apps/files/js/files.js
parent5b7143885d195d59cd6c3982314f9b92fa60d8aa (diff)
downloadnextcloud-server-51c3a3ddaf7efd4dda602c693d5670498978d4fa.tar.gz
nextcloud-server-51c3a3ddaf7efd4dda602c693d5670498978d4fa.zip
update jquery-visibility in files app
* ref #12877
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;
}