Commit 96681e09 authored by Michal Čihař's avatar Michal Čihař

Set expiry for translation tab cookie

Issue #1059
Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 40b535c2
......@@ -540,7 +540,7 @@ $(function () {
/* Store active translation tab in cookie */
$('.translation-tabs a[data-toggle="tab"]').on('shown.bs.tab', function(e) {
Cookies.remove('translate-tab', { path: '' });
Cookies.set('translate-tab', $(this).attr('href'), { path: '/'});
Cookies.set('translate-tab', $(this).attr('href'), { path: '/', expires: 365 });
});
/* Navigate to a tab when the history changes */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment