mirror of
https://github.com/nextcloud/passman.git
synced 2026-01-11 01:58:49 +08:00
Added undefined underscore as parameter to fix travis
Signed-off-by: fnuesse <felix.nuesse@t-online.de>
This commit is contained in:
parent
e73ba9c09c
commit
1e38374858
1 changed files with 6 additions and 4 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue