Skip to content

Commit

Permalink
Merge branch 'release' into staging
Browse files Browse the repository at this point in the history
  • Loading branch information
Cohee1207 committed Nov 12, 2023
2 parents 31d6c97 + 6c02a12 commit 8ff4599
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions public/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -9088,8 +9088,11 @@ jQuery(async function () {
}
});

let manualInputTimeout;

$(document).on('input', '.range-block-counter input, .neo-range-input', function () {
setTimeout(() => {
clearTimeout(manualInputTimeout);
manualInputTimeout = setTimeout(() => {
const caretPosition = saveCaretPosition($(this).get(0));
const myText = $(this).val().trim();
$(this).val(myText); // trim line breaks and spaces
Expand Down Expand Up @@ -9155,7 +9158,7 @@ jQuery(async function () {

restoreCaretPosition($(this).get(0), caretPosition);
}, 2000);
})
});

$(".user_stats_button").on('click', function () {
userStatsHandler();
Expand Down

0 comments on commit 8ff4599

Please sign in to comment.