mirror of
https://gitlab.com/SIGBUS/nyaa.git
synced 2024-12-22 08:49:59 +00:00
Fix merge mistake.
This commit is contained in:
parent
91a9264442
commit
3e2437bba1
|
@ -201,15 +201,6 @@
|
|||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
var target = document.getElementById('torrent-description');
|
||||
var text = target.innerHTML;
|
||||
var reader = new commonmark.Parser({safe: true});
|
||||
var writer = new commonmark.HtmlRenderer({safe: true, softbreak: '<br />'});
|
||||
var parsed = reader.parse(text.trim());
|
||||
target.innerHTML = writer.render(parsed);
|
||||
</script>
|
||||
|
||||
<script>
|
||||
// Focus the report text field once the modal is opened.
|
||||
$('#reportModal').on('shown.bs.modal', function () {
|
||||
$('#reason').focus();
|
||||
|
|
Loading…
Reference in a new issue