Skip to content

Commit

Permalink
Stop location hash update
Browse files Browse the repository at this point in the history
  • Loading branch information
somathias committed Jan 25, 2024
1 parent d33076f commit 7f52447
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/assets/javascripts/project_folders.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ function folder_clicked(folder_id, project_id) {
async function item_clicked(type, id, parent) {
hideAllViews();
updateBreadcrumb(type);
updateLocationHash(type, id)
//updateLocationHash(type, id)
const tempParent = selectedItem.parent
selectedItem.id = id;
selectedItem.type = type;
Expand Down
2 changes: 1 addition & 1 deletion app/views/general/_single_page_treeview.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
const id = ["study", "assay"].includes(selectedItem.type) ? selectedItem.id : selectedItem.parent.id
const parent = $j(`a[_type="${type}"][_id="${id}"]`)
$j(parent).next().find(`a[_type="${item}"]`).addClass("jstree-clicked")
updateLocationHash(item, id)
//updateLocationHash(item, id)
setTimeout(() => updateContainerHeight(), 1000)
}

Expand Down
2 changes: 1 addition & 1 deletion app/views/single_pages/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@
const id = ["study", "assay"].includes(selectedItem.type) ? selectedItem.id : selectedItem.parent.id
const parent = $j(`a[_type="${type}"][_id="${id}"]`)
$j(parent).next().find(`a[_type="${item}"]`).addClass("jstree-clicked")
updateLocationHash(item, id)
//updateLocationHash(item, id)
setTimeout(() => updateContainerHeight(), 1000)
}

Expand Down

0 comments on commit 7f52447

Please sign in to comment.