aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/js/files.js
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files/js/files.js')
-rw-r--r--apps/files/js/files.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/apps/files/js/files.js b/apps/files/js/files.js
index 92f97f5d3c0..4549de57f3f 100644
--- a/apps/files/js/files.js
+++ b/apps/files/js/files.js
@@ -258,8 +258,9 @@
// only possible at the moment if user is logged in or the files app is loaded
if (OC.currentUser && OCA.Files.App) {
// start on load - we ask the server every 5 minutes
+ var func = _.bind(OCA.Files.App.fileList.updateStorageStatistics, OCA.Files.App.fileList);
var updateStorageStatisticsInterval = 5*60*1000;
- var updateStorageStatisticsIntervalId = setInterval(OCA.Files.App.fileList.updateStorageStatistics, updateStorageStatisticsInterval);
+ var updateStorageStatisticsIntervalId = setInterval(func, updateStorageStatisticsInterval);
// TODO: this should also stop when switching to another view
// Use jquery-visibility to de-/re-activate file stats sync
@@ -267,7 +268,7 @@
$(document).on({
'show.visibility': function() {
if (!updateStorageStatisticsIntervalId) {
- updateStorageStatisticsIntervalId = setInterval(OCA.Files.App.fileList.updateStorageStatistics, updateStorageStatisticsInterval);
+ updateStorageStatisticsIntervalId = setInterval(func, updateStorageStatisticsInterval);
}
},
'hide.visibility': function() {
@@ -285,6 +286,9 @@
$settings.find('input').focus();
}
});
+ $('#webdavurl').on('click', function () {
+ $('#webdavurl').select();
+ });
//scroll to and highlight preselected file
/*