From 7df4a31eed46c14777f7b1b71d1c645b97bd00b3 Mon Sep 17 00:00:00 2001 From: Yunus Emre Kalkan Date: Thu, 23 Jan 2020 11:51:23 +0300 Subject: [PATCH] fix "Doc variables don't change when there are multiple tabs" --- .../docs/src/Volo.Docs.Web/Pages/Documents/Project/index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/index.js b/modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/index.js index a95677891e..65b2fd57da 100644 --- a/modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/index.js +++ b/modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/index.js @@ -161,7 +161,6 @@ if (splitted.length > 0 && splitted[0] === key) { keyValues[k] = key + "=" + value; - console.log(keyValues[k]); changed = true; } } @@ -171,7 +170,10 @@ } } - abp.utils.setCookieValue("AbpDocsPreferences", keyValues.join('|')); + var tenYearsLater = new Date(); + tenYearsLater.setTime(tenYearsLater.getTime() + (365 * 10 * 24 * 60 * 60 * 1000)); + + abp.utils.setCookieValue("AbpDocsPreferences", keyValues.join('|'), tenYearsLater, '/'); }; $(".doc-section-combobox").change(function () {