Added undefined underscore as parameter to fix travis

Signed-off-by: fnuesse <felix.nuesse@t-online.de>
This commit is contained in:
fnuesse 2018-11-21 00:23:53 +01:00
parent e73ba9c09c
commit 1e38374858
No known key found for this signature in database
GPG key ID: 2089A3431243E819

View file

@ -730,9 +730,11 @@ var OC={
* After 7sec the first notification is gone, then we can show another one
* if necessary.
*/
_ajaxConnectionLostHandler: _.throttle(function() {
OC.Notification.showTemporary(t('core', 'Connection to server lost'));
}, 7 * 1000, {trailing: false}),
_ajaxConnectionLostHandler: function(underscore){
underscore.throttle(function() {
OC.Notification.showTemporary(t('core', 'Connection to server lost'));
}, 7 * 1000, {trailing: false});
},
/**
* Process ajax error, redirects to main page
@ -761,7 +763,7 @@ var OC={
// Connection lost (e.g. WiFi disconnected or server is down)
setTimeout(function() {
if (!self._userIsNavigatingAway && !self._reloadCalled) {
self._ajaxConnectionLostHandler();
self._ajaxConnectionLostHandler(_);
}
}, 100);
}