Skip to content

Commit

Permalink
Merge pull request #1756 from Oha-you/bug/js
Browse files Browse the repository at this point in the history
(Fix) Torrent filter settings saving, CSRF value for jquery ajax
  • Loading branch information
HDVinnie authored May 12, 2021
2 parents e9c234b + 6684461 commit e37b675
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion resources/js/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ try {

$.ajaxSetup({
headers: {
'X-CSRF-TOKEN': document.head.querySelector('meta[name="csrf-token"]'),
'X-CSRF-TOKEN': document.head.querySelector('meta[name="csrf-token"]').content,
},
});

Expand Down
4 changes: 2 additions & 2 deletions resources/js/unit3d/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ class uploadExtensionBuilder {
defaults: {"language": "ENGLISH"} // defaults values for : language, resolution and year
});



let matcher = name.value.toLowerCase();

Expand Down Expand Up @@ -626,7 +626,7 @@ class facetedSearchBuilder {
}
let localXHR = new XMLHttpRequest()
localXHR = $.ajax({
url: '/filterSettings',
url: '/torrents/filterSettings',
data: {
_token: this.csrf,
force: force,
Expand Down

0 comments on commit e37b675

Please sign in to comment.