diff --git a/module/mr/js/diff.ui.js b/module/mr/js/diff.ui.js index 94d656ba71..a9a4ee86e3 100644 --- a/module/mr/js/diff.ui.js +++ b/module/mr/js/diff.ui.js @@ -207,7 +207,8 @@ window.afterPageUpdate = function() /* Load default tab content. */ var height = getIframeHeight(); - $('#tab-' + fileAsId).html("") + $.cookie.set('repoCodePath', file, {expires:config.cookieLife, path:config.webRoot}); + $('#tab-' + fileAsId).html("") /* Select default tree item. */ const currentElement = findItemInTreeItems(tree, fileAsId, 0); @@ -332,7 +333,8 @@ function openTab(entry, name) $('#monacoTabs .nav-tabs').append(newTab); var height = getIframeHeight(); - $('#monacoTabs .tab-content').append("
") + $.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'); setTimeout(() => {