Commit e73050f724f70a3f679ae5b38c3143a8e06f31a1
Fix dig action inputs
Charles Lehner committed on 3/27/2016, 3:14:29 AMParent: 55804ce8dbbebdecd69fd1bbc2da3d4f83b46600
Files changed
index.js | changed |
index.js | ||
---|---|---|
@@ -680,13 +680,13 @@ | ||
680 | 680 | '<button class="btn" ' + |
681 | 681 | (isPublic ? 'disabled="disabled"' : ' type="submit"') + '>' + |
682 | 682 | '<i>✌</i> ' + (!isPublic && upvoted ? 'Undig' : 'Dig') + |
683 | 683 | '</button>' + |
684 | - (isPublic ? '<input type="hidden" name="vote" value="' + | |
684 | + (isPublic ? '' : '<input type="hidden" name="vote" value="' + | |
685 | 685 | (upvoted ? '0' : '1') + '">' + |
686 | 686 | '<input type="hidden" name="action" value="vote">' + |
687 | 687 | '<input type="hidden" name="id" value="' + |
688 | - escapeHTML(repo.id) + '">' : '') + ' ' + | |
688 | + escapeHTML(repo.id) + '">') + ' ' + | |
689 | 689 | '<strong>' + link(digsPath, votes.upvotes) + '</strong>' + |
690 | 690 | '</form>' + |
691 | 691 | renderNameForm(!isPublic, repo.id, repoName, 'repo-name', null, |
692 | 692 | 'Rename the repo', |
Built with git-ssb-web