Compare commits

..

No commits in common. "65ddd4109d1649053a58fc63a5e18a98faec341d" and "a70e5feee80092592404efdc5c83cb5b6011c101" have entirely different histories.

1 changed files with 0 additions and 31 deletions

View File

@ -3006,35 +3006,4 @@ function buildContent(property) {
$(".shortinput-store-name").text(property.name); $(".shortinput-store-name").text(property.name);
} }
</script>
<script>
document.addEventListener('DOMContentLoaded', function() {
// 1. 유령 글자 제거 함수
function cleanGhost(str) {
if (typeof str !== 'string') return str;
return str.replace(/[\u0000-\u001F\u007F-\u009F\u200B-\u200D\uFEFF]/g, "").trim();
}
// 2. 적용할 버튼들을 목록으로 만듭니다 (id1과 id3)
const buttons = ['customer-button-id1', 'customer-button-id3'];
buttons.forEach(function(id) {
const btn = document.getElementById(id);
if (btn) {
btn.addEventListener('click', function() {
// 3. 버튼 클릭 시 모든 텍스트 입력창 청소
// Restaurant Info와 Contact Info의 모든 input을 잡기 위해 범위를 넓게 잡습니다.
const allInputs = document.querySelectorAll('input[type="text"], textarea');
allInputs.forEach(function(input) {
if (input.value) {
input.value = cleanGhost(input.value);
}
});
});
}
});
});
</script> </script>