Skip to content

Commit

Permalink
disable page refresh when mark university for debug.
Browse files Browse the repository at this point in the history
  • Loading branch information
zw963 committed Jun 13, 2024
1 parent cc0c443 commit 2f2673a
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/actions/universities/htmx/marked.cr
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Universities::Htmx::Marked < HtmxAction

SaveChongWenBao.update!(chong_wen_bao, is_marked: !chong_wen_bao.is_marked)

context.response.headers["HX-Refresh"] = "true"
# context.response.headers["HX-Refresh"] = "true"

plain_text "ok"
end
Expand Down
2 changes: 1 addition & 1 deletion src/actions/universities/htmx/marked_2020.cr
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Universities::Htmx::Marked2020 < HtmxAction

SaveChongWenBao.update!(chong_wen_bao, is_marked_2020: !chong_wen_bao.is_marked_2020)

context.response.headers["HX-Refresh"] = "true"
# context.response.headers["HX-Refresh"] = "true"

plain_text "ok"
end
Expand Down
2 changes: 1 addition & 1 deletion src/actions/universities/htmx/marked_2021.cr
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Universities::Htmx::Marked2021 < HtmxAction

SaveChongWenBao.update!(chong_wen_bao, is_marked_2021: !chong_wen_bao.is_marked_2021)

context.response.headers["HX-Refresh"] = "true"
# context.response.headers["HX-Refresh"] = "true"

plain_text "ok"
end
Expand Down
2 changes: 1 addition & 1 deletion src/actions/universities/htmx/marked_2022.cr
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Universities::Htmx::Marked2022 < HtmxAction

SaveChongWenBao.update!(chong_wen_bao, is_marked_2022: !chong_wen_bao.is_marked_2022)

context.response.headers["HX-Refresh"] = "true"
# context.response.headers["HX-Refresh"] = "true"

plain_text "ok"
end
Expand Down
2 changes: 1 addition & 1 deletion src/actions/universities/htmx/marked_2023.cr
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Universities::Htmx::Marked2023 < HtmxAction

SaveChongWenBao.update!(chong_wen_bao, is_marked_2023: !chong_wen_bao.is_marked_2023)

context.response.headers["HX-Refresh"] = "true"
# context.response.headers["HX-Refresh"] = "true"

plain_text "ok"
end
Expand Down

0 comments on commit 2f2673a

Please sign in to comment.