Skip to content

Commit

Permalink
rename function to a better name
Browse files Browse the repository at this point in the history
  • Loading branch information
maggi373 committed Oct 16, 2024
1 parent 91fc20a commit 11437dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion static/js/solderpy.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function submitbuttonpress(id, val, submitid) {
document.querySelector(submit2).click();
}

function submitbuttonpress2(version, name, urlform, submitid) {
function submitbuttonpresswithurl(version, name, urlform, submitid) {
versionname = document.getElementById(version).value;
urllink = name + '/' + name + '-' + versionname + '.zip';
document.getElementById(urlform).value = urllink;
Expand Down
2 changes: 1 addition & 1 deletion templates/modversion.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<th scope="col">Download URL</th>
<th scope="col">Filesize</th>
<th>
<button type="button" class="btn btn-success tableaddversion" onclick="copyformtext('newmodvermanual_version', 'version');copyformtext('newmodvermanual_mcversion', 'mcversion');copyformtext('newmodvermanual_md5', 'md5');submitbuttonpress2('version', '{{ mod.name }}', 'newmodvermanual_url', 'newmodvermanual_submit')">Add Version</button>
<button type="button" class="btn btn-success tableaddversion" onclick="copyformtext('newmodvermanual_version', 'version');copyformtext('newmodvermanual_mcversion', 'mcversion');copyformtext('newmodvermanual_md5', 'md5');submitbuttonpresswithurl('version', '{{ mod.name }}', 'newmodvermanual_url', 'newmodvermanual_submit')">Add Version</button>
</th>
</tr>
</thead>
Expand Down

0 comments on commit 11437dd

Please sign in to comment.