diff --git a/module/mr/js/diff.ui.js b/module/mr/js/diff.ui.js index 94d9d330aa..94d656ba71 100644 --- a/module/mr/js/diff.ui.js +++ b/module/mr/js/diff.ui.js @@ -343,7 +343,7 @@ function openTab(entry, name) function updateEditorInline(eleId) { - $.cookie.set('renderSideBySide', diffAppose); + $.cookie.set('renderSideBySide', diffAppose, {expires:config.cookieLife, path:config.webRoot}); if(typeof $(eleId + ' iframe')[0].contentWindow.updateEditorInline == 'function') { $(eleId + ' iframe')[0].contentWindow.updateEditorInline(diffAppose); diff --git a/module/repo/js/browse.ui.js b/module/repo/js/browse.ui.js index fb7c2d1d3c..e8dd840598 100644 --- a/module/repo/js/browse.ui.js +++ b/module/repo/js/browse.ui.js @@ -147,7 +147,7 @@ window.diffClick = function() var newDiffLink = diffLink.replace('{oldRevision}', revisionMap[checkedIds[1]]); newDiffLink = newDiffLink.replace('{newRevision}', revisionMap[checkedIds[0]]); - $.cookie.set('sideRepoSelected', checkedIds.join(',')) + $.cookie.set('sideRepoSelected', checkedIds.join(','), {expires:config.cookieLife, path:config.webRoot}) openUrl(newDiffLink, {app: appTab}); } diff --git a/module/repo/js/diff.ui.js b/module/repo/js/diff.ui.js index bacdb23f5d..ee23cfa657 100644 --- a/module/repo/js/diff.ui.js +++ b/module/repo/js/diff.ui.js @@ -31,7 +31,7 @@ window.afterPageUpdate = function() /* Load default tab content. */ var height = getIframeHeight(); - $.cookie.set('repoCodePath', file); + $.cookie.set('repoCodePath', file, {expires:config.cookieLife, path:config.webRoot}); $('#tab-' + fileAsId).html("") /* Select default tree item. */ @@ -169,7 +169,7 @@ function openTab(entry, name) $('#monacoTabs .nav-tabs').append(newTab); var height = getIframeHeight(); - $.cookie.set('repoCodePath', entry); + $.cookie.set('repoCodePath', entry, {expires:config.cookieLife, path:config.webRoot}); $('#monacoTabs .tab-content').append("
") if($('.monaco-dropmenu').attr('class').indexOf('hidden')) $('.monaco-dropmenu').removeClass('hidden'); @@ -181,7 +181,7 @@ function openTab(entry, name) function updateEditorInline(eleId) { - $.cookie.set('renderSideBySide', diffAppose); + $.cookie.set('renderSideBySide', diffAppose, {expires:config.cookieLife, path:config.webRoot}); if(typeof $(eleId + ' iframe')[0].contentWindow.updateEditorInline == 'function') { $(eleId + ' iframe')[0].contentWindow.updateEditorInline(diffAppose); diff --git a/module/repo/js/monaco.ui.js b/module/repo/js/monaco.ui.js index d918e5f8e7..ff4c975e78 100644 --- a/module/repo/js/monaco.ui.js +++ b/module/repo/js/monaco.ui.js @@ -31,7 +31,7 @@ window.afterPageUpdate = function() /* Load default tab content. */ var height = getIframeHeight(); - $.cookie.set('repoCodePath', file); + $.cookie.set('repoCodePath', file, {expires:config.cookieLife, path:config.webRoot}); $('#tab-' + fileAsId).html("") /* Select default tree item. */ @@ -55,7 +55,7 @@ window.afterPageUpdate = function() if(url != 'javascript:;') return; - if(branchOrTag != $.cookie.get('repoBranch')) $.cookie.set('repoBranch', branchOrTag); + if(branchOrTag != $.cookie.get('repoBranch')) $.cookie.set('repoBranch', branchOrTag, {expires:config.cookieLife, path:config.webRoot}); openUrl(currentLink, {app: appTab}); }) @@ -116,7 +116,7 @@ function openTab(entry, name) $('#monacoTabs .nav-tabs').append(newTab); var height = getIframeHeight(); - $.cookie.set('repoCodePath', entry); + $.cookie.set('repoCodePath', entry, {expires:config.cookieLife, path:config.webRoot}); $('#monacoTabs .tab-content').append("
") if($('.monaco-dropmenu').attr('class').indexOf('hidden')) $('.monaco-dropmenu').removeClass('hidden');