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