Merge pull request !7 from Coxxs/fix/report-reason

This commit is contained in:
Coxxs 2017-01-13 14:30:36 +08:00 committed by 康盛Discuz!
commit d1b027db6c
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@
var reasons = {lang report_reason_message}; var reasons = {lang report_reason_message};
var reasonstring = ''; var reasonstring = '';
for (i=0; i<reasons.length; i++) { for (i=0; i<reasons.length; i++) {
reasonstring += '<label><input type="radio" name="report_select" class="pr" onclick="$(\'report_other\').style.display=\'' + (i < reasons.length -1 ? 'none' : '') + '\';$(\'report_msg\').style.display=\'' + (i < reasons.length -1 ? 'none' : '') + '\'" value="' + reasons[i] + '"> ' + reasons[i] + '</label><br />'; reasonstring += '<label><input type="radio" name="report_select" class="pr" onclick="' + (i < reasons.length -1 ? '$(\'report_message\').innerHTML=this.value;' : '') + '$(\'report_other\').style.display=\'' + (i < reasons.length -1 ? 'none' : '') + '\';$(\'report_msg\').style.display=\'' + (i < reasons.length -1 ? 'none' : '') + '\'" value="' + reasons[i] + '"> ' + reasons[i] + '</label><br />';
} }
$('report_reasons').innerHTML = reasonstring; $('report_reasons').innerHTML = reasonstring;
</script> </script>