(category, oldText)
| 1378 | |
| 1379 | // 编辑快捷回复 |
| 1380 | function editQuickReply(category, oldText) { |
| 1381 | const newText = prompt('编辑快捷回复:', oldText); |
| 1382 | if (newText !== null && newText.trim() !== '' && newText !== oldText) { |
| 1383 | if (editReplyText(category, oldText, newText.trim())) { |
| 1384 | updateQuickReplyContent(); |
| 1385 | if (window.addQuickReplyLog) { |
| 1386 | window.addQuickReplyLog(`编辑快捷回复: ${oldText} -> ${newText.trim()}`); |
| 1387 | } |
| 1388 | } else { |
| 1389 | alert('编辑失败,可能已存在相同回复'); |
| 1390 | } |
| 1391 | } |
| 1392 | } |
| 1393 | |
| 1394 | // 初始化内容 |
| 1395 | updateQuickReplyContent(); |
no test coverage detected