Skip to content

Commit

Permalink
Merge branch 'bookmark'
Browse files Browse the repository at this point in the history
  • Loading branch information
wildjcrt committed Oct 7, 2024
2 parents 0053757 + b7c5e6a commit db19223
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/views/pages/bookmarks.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
termsHistoryUl = document.getElementById( "terms-history" ),
bookmarksUl = document.getElementById( "bookmarks-list" );

termsHistory.forEach(function(term){
Array.from(termsHistory).reverse().forEach(function(term){
var li = document.createElement( "li" ),
a = document.createElement( "a" );

Expand All @@ -34,7 +34,7 @@
termsHistoryUl.appendChild(li);
});

bookmarks.forEach(function(term){
Array.from(bookmarks).reverse().forEach(function(term){
var li = document.createElement( "li" ),
a = document.createElement( "a" );

Expand Down
2 changes: 1 addition & 1 deletion app/views/terms/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
}

var term = window.location.pathname.split( "/" ).slice(-1)[0];
saveHistory(term);
saveHistory(unescape(term));
</script>

<div id="sidebar" class="mt-[42px] p-4 absolute top-0 left-0 w-full h-[75px] border-r-0 border-b border-gray-200 sm:static sm:border-r sm:border-b-0 sm:w-1/4 sm:h-auto sm:mt-0">
Expand Down

0 comments on commit db19223

Please sign in to comment.