1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

update text

This commit is contained in:
Luke Pulverenti 2016-05-12 15:21:43 -04:00
parent 3af73d4fde
commit 98b0114719
47 changed files with 166 additions and 1977 deletions

View file

@ -146,44 +146,6 @@
});
},
needsRefresh: function (elem) {
var last = parseInt(elem.getAttribute('data-lastrefresh') || '0');
if (!last) {
return true;
}
//if (NavHelper.isBack()) {
// console.log('Not refreshing data because IsBack=true');
// return false;
//}
var now = new Date().getTime();
var cacheDuration;
if (AppInfo.isNativeApp) {
cacheDuration = 300000;
} else if (browserInfo.ipad || browserInfo.iphone || browserInfo.android) {
cacheDuration = 10000;
} else {
cacheDuration = 30000;
}
if ((now - last) < cacheDuration) {
console.log('Not refreshing data due to age');
return false;
}
return true;
},
setLastRefreshed: function (elem) {
elem.setAttribute('data-lastrefresh', new Date().getTime());
elem.classList.add('hasrefreshtime');
},
allowSwipe: function (target) {
function allowSwipeOn(elem) {