Skip to content

Commit

Permalink
Apply prettier changes
Browse files Browse the repository at this point in the history
  • Loading branch information
lee-to authored and github-actions[bot] committed Jul 28, 2024
1 parent d9532c2 commit 121f97a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions resources/js/Request/Sets.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,19 @@ export function listComponentRequest(component, pushState = false) {
document.querySelectorAll('.js-change-query').forEach(function (element) {
let value = element.dataset.originalUrl + (query ? '?' + query : '')

if(element.dataset.originalQuery) {
value = value + (query ? '&' + element.dataset.originalQuery : '?' + element.dataset.originalQuery)
if (element.dataset.originalQuery) {
value =
value +
(query ? '&' + element.dataset.originalQuery : '?' + element.dataset.originalQuery)
}

let attr = 'href'

if(element.tagName.toLowerCase() === 'form') {
if (element.tagName.toLowerCase() === 'form') {
attr = 'action'
}

if(element.tagName.toLowerCase() === 'input') {
if (element.tagName.toLowerCase() === 'input') {
attr = 'value'
}

Expand Down

0 comments on commit 121f97a

Please sign in to comment.