mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-16 14:33:14 +00:00
PHRAS-3528 fix download zip loop
This commit is contained in:
@@ -416,10 +416,13 @@
|
||||
});
|
||||
});
|
||||
|
||||
/**manage session and redirect to login page**/
|
||||
var usr_id = '{{ app.getAuthenticator().user.getId }}';
|
||||
var module = '{{ module }}';
|
||||
// no need to launch pollNotifications if not connected on load page
|
||||
{% if app.getAuthenticator().isAuthenticated() %}
|
||||
/**manage session and redirect to login page**/
|
||||
var usr_id = '{{ app.getAuthenticator().user.getId }}';
|
||||
var module = '{{ module }}';
|
||||
|
||||
// start pooling recursively
|
||||
window.setTimeout( function() { commonModule.pollNotifications(usr_id, module === 'prod', true); }, 2000);
|
||||
// start pooling recursively
|
||||
window.setTimeout( function() { commonModule.pollNotifications(usr_id, module === 'prod', true); }, 2000);
|
||||
{% endif %}
|
||||
</script>
|
||||
|
Reference in New Issue
Block a user