git ssb

30+

cel / git-ssb-web



Commit e73050f724f70a3f679ae5b38c3143a8e06f31a1

Fix dig action inputs

Charles Lehner committed on 3/27/2016, 3:14:29 AM
Parent: 55804ce8dbbebdecd69fd1bbc2da3d4f83b46600

Files changed

index.jschanged
index.jsView
@@ -680,13 +680,13 @@
680680 '<button class="btn" ' +
681681 (isPublic ? 'disabled="disabled"' : ' type="submit"') + '>' +
682682 '<i>✌</i> ' + (!isPublic && upvoted ? 'Undig' : 'Dig') +
683683 '</button>' +
684- (isPublic ? '<input type="hidden" name="vote" value="' +
684+ (isPublic ? '' : '<input type="hidden" name="vote" value="' +
685685 (upvoted ? '0' : '1') + '">' +
686686 '<input type="hidden" name="action" value="vote">' +
687687 '<input type="hidden" name="id" value="' +
688- escapeHTML(repo.id) + '">' : '') + ' ' +
688+ escapeHTML(repo.id) + '">') + ' ' +
689689 '<strong>' + link(digsPath, votes.upvotes) + '</strong>' +
690690 '</form>' +
691691 renderNameForm(!isPublic, repo.id, repoName, 'repo-name', null,
692692 'Rename the repo',

Built with git-ssb-web