|
|
|
@ -357,24 +357,26 @@ $(document).ready(function() { |
|
|
|
Files.updateMaxUploadFilesize(response); |
|
|
|
Files.updateMaxUploadFilesize(response); |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// only possible at the moment if user is logged in
|
|
|
|
// start on load - we ask the server every 5 minutes
|
|
|
|
if (OC.currentUser) { |
|
|
|
var update_storage_statistics_interval = 5*60*1000; |
|
|
|
// start on load - we ask the server every 5 minutes
|
|
|
|
var update_storage_statistics_interval_id = setInterval(update_storage_statistics, update_storage_statistics_interval); |
|
|
|
var update_storage_statistics_interval = 5*60*1000; |
|
|
|
|
|
|
|
var update_storage_statistics_interval_id = setInterval(update_storage_statistics, update_storage_statistics_interval); |
|
|
|
// Use jquery-visibility to de-/re-activate file stats sync
|
|
|
|
|
|
|
|
if ($.support.pageVisibility) { |
|
|
|
// Use jquery-visibility to de-/re-activate file stats sync
|
|
|
|
$(document).on({ |
|
|
|
if ($.support.pageVisibility) { |
|
|
|
'show.visibility': function() { |
|
|
|
$(document).on({ |
|
|
|
if (!update_storage_statistics_interval_id) { |
|
|
|
'show.visibility': function() { |
|
|
|
update_storage_statistics_interval_id = setInterval(update_storage_statistics, update_storage_statistics_interval); |
|
|
|
if (!update_storage_statistics_interval_id) { |
|
|
|
|
|
|
|
update_storage_statistics_interval_id = setInterval(update_storage_statistics, update_storage_statistics_interval); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
'hide.visibility': function() { |
|
|
|
|
|
|
|
clearInterval(update_storage_statistics_interval_id); |
|
|
|
|
|
|
|
update_storage_statistics_interval_id = 0; |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}); |
|
|
|
'hide.visibility': function() { |
|
|
|
} |
|
|
|
clearInterval(update_storage_statistics_interval_id); |
|
|
|
|
|
|
|
update_storage_statistics_interval_id = 0; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//scroll to and highlight preselected file
|
|
|
|
//scroll to and highlight preselected file
|
|
|
|
|