mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-18 11:38:53 +00:00
fix(view): automatically refresh view only if a number is set.
This commit is contained in:
@@ -129,7 +129,7 @@
|
||||
|
||||
// Restart the refresh timer, if needed
|
||||
var refreshViewCheck = Component.$Preferences.defaults.SOGoRefreshViewCheck;
|
||||
if (refreshViewCheck && refreshViewCheck != 'manually') {
|
||||
if (refreshViewCheck && refreshViewCheck != 'manually' && !isNaN(refreshViewCheck)) {
|
||||
var f = angular.bind(Component.$rootScope, Component.$rootScope.$emit, 'calendars:list');
|
||||
Component.$refreshTimeout = Component.$timeout(f, refreshViewCheck.timeInterval()*1000);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user