Skip to content

Commit

Permalink
Fix issue #563 - Download URL text
Browse files Browse the repository at this point in the history
  - PR #587 by @aschmois
  • Loading branch information
aschmois authored and GenPage committed Sep 16, 2016
1 parent eb9d06f commit 4f8b3b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/mod/view.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
data: $("#add").serialize(),
success: function (data) {
if (data.status == "success") {
$("#add-row").after('<tr><td></td><td>' + data.version + '</td><td>' + data.md5 + '</td><td><a href="' + mirror_url + 'mods/{{ $mod->name }}/{{ $mod->name }}-' + data.version + '.zip" target="_blank">{mods/{{ $mod->name }}/{{ $mod->name }}-' + data.version + '.zip</a></td><td>' + data.filesize + '</td><td></td></tr>');
$("#add-row").after('<tr><td></td><td>' + data.version + '</td><td>' + data.md5 + '</td><td><a href="' + mirror_url + 'mods/{{ $mod->name }}/{{ $mod->name }}-' + data.version + '.zip" target="_blank">' + mirror_url + 'mods/{{ $mod->name }}/{{ $mod->name }}-' + data.version + '.zip</a></td><td>' + data.filesize + '</td><td></td></tr>');
$.jGrowl('Added mod version at ' + data.version, { group: 'alert-success' });
} else if (data.status == "warning") {
$("#add-row").after('<tr><td></td><td>' + data.version + '</td><td>' + data.md5 + '</td><td><a href="' + mirror_url + 'mods/{{ $mod->name }}/{{ $mod->name }}-' + data.version + '.zip" target="_blank">' + mirror_url + 'mods/{{ $mod->name }}/{{ $mod->name }}-' + data.version + '.zip</a></td><td>' + data.filesize + '</td><td></td></tr>');
Expand Down

0 comments on commit 4f8b3b9

Please sign in to comment.