~rbdr/crowdantine

636c2ad49bd1a4cfdba7e8c6a75691819cc2fdc1 — Ben Beltran 4 years ago 6c43b90
Add a unique id for each link
1 files changed, 1 insertions(+), 1 deletions(-)

M index.html
M index.html => index.html +1 -1
@@ 32,7 32,7 @@
      var generateProposalHTML = function(proposal) {

        var listItem = document.createElement('li');
        listItem.innerHTML = proposal.title + ' (' + proposal.total_occurrences + ' votes) <a href="#" onclick="createProposal(\'' + proposal.title.replace(/'/g, '\\\'')+ '\')">I agree.</a> </li>'
        listItem.innerHTML = proposal.title + ' (' + proposal.total_occurrences + ' votes) <a href="#add-' + proposal.id + '" onclick="createProposal(\'' + proposal.title.replace(/'/g, '\\\'')+ '\')">I agree.</a> </li>'
        return listItem;
      };