Skip to content

Commit

Permalink
새로고침 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
green1052 committed Sep 28, 2024
1 parent 7d50e45 commit cb3e068
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/modules/refresh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ export default {

const urlSearchParams = new URLSearchParams(location.href);
const currentPostNo = urlSearchParams.get("no");
const isPageView = location.href.includes("/board/view");

let originalLocation = location.href;

Expand Down Expand Up @@ -179,7 +180,6 @@ export default {
return false;

const isAdmin = $(".useradmin_btnbox button").length > 0;
const isPageView = location.href.includes("/board/view");

if (isAdmin && $(".article_chkbox").filter(":checked").length > 0) return false;

Expand Down Expand Up @@ -318,14 +318,13 @@ export default {
}

if (isAdmin && !isPageView) {
$element
.prepend(`<td class=gall_chk>${managerCheckbox}</td>`);
$element.prepend(`<td class=gall_chk>${managerCheckbox}</td>`);
}

if ($element.data("type") === "icon_slow") {
$oldList.prepend($element);
} else {
const $target = $oldList.children(`tr:has(em.icon_slow), tr:has(em.icon_notice), tr:has(em.icon_survey)`).last();
const $target = $oldList.children(`tr:has(em.icon_slow), tr:has(em.icon_notice), tr:has(em.icon_survey), tr:has(em.icon_issue)`).last();

if ($target.length) {
$target.after($element);
Expand Down

0 comments on commit cb3e068

Please sign in to comment.