mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-06 12:31:33 +01:00
fix flagReason
This commit is contained in:
committed by
GitHub
parent
6c755869cd
commit
cd3d1f07e0
@@ -22,7 +22,7 @@ define('flags', ['benchpress'], function (Benchpress) {
|
||||
flagModal.on('click', '.flag-reason', function () {
|
||||
var reportText = $(this).text();
|
||||
|
||||
if (flagReason.length === 0) {
|
||||
if (flagReason.val().length === 0) {
|
||||
return createFlag(data.type, data.id, reportText);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user