MCPcopy Create free account
hub / github.com/dajie111/nodeseek-userscript / handleReplyDrop

Function handleReplyDrop

quickReply.js:1114–1130  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

1112 }
1113
1114 function handleReplyDrop(e) {
1115 if (e.stopPropagation) {
1116 e.stopPropagation();
1117 }
1118
1119 const targetIndex = parseInt(this.dataset.index);
1120 if (replyDraggedIndex !== targetIndex) {
1121 reorderRepliesAfterDrag(replyDraggedIndex, targetIndex);
1122 }
1123
1124 // 清理样式
1125 document.querySelectorAll('.reply-item-drag-over').forEach(el => {
1126 el.classList.remove('reply-item-drag-over');
1127 });
1128
1129 return false;
1130 }
1131
1132 function handleReplyDragEnd() {
1133 this.classList.remove('reply-item-dragging');

Callers

nothing calls this directly

Calls 1

reorderRepliesAfterDragFunction · 0.85

Tested by

no test coverage detected