You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@steve.apache.org by hu...@apache.org on 2015/03/22 20:34:03 UTC

svn commit: r1668461 - in /steve/trunk/pytest/www/htdocs: admin/add_issue.html js/steve_rest.js

Author: humbedooh
Date: Sun Mar 22 19:34:03 2015
New Revision: 1668461

URL: http://svn.apache.org/r1668461
Log:
fix buggo so you can add initial candidate list

Modified:
    steve/trunk/pytest/www/htdocs/admin/add_issue.html
    steve/trunk/pytest/www/htdocs/js/steve_rest.js

Modified: steve/trunk/pytest/www/htdocs/admin/add_issue.html
URL: http://svn.apache.org/viewvc/steve/trunk/pytest/www/htdocs/admin/add_issue.html?rev=1668461&r1=1668460&r2=1668461&view=diff
==============================================================================
--- steve/trunk/pytest/www/htdocs/admin/add_issue.html (original)
+++ steve/trunk/pytest/www/htdocs/admin/add_issue.html Sun Mar 22 19:34:03 2015
@@ -60,7 +60,7 @@
         
         <div class="keyvaluepair">
             <div class="keyfield">Candidates (one per line):</div>
-            <textarea name="candidates" style="width: 300px; height: 200px;"></textarea>
+            <textarea name="candidates" id="candidates" style="width: 300px; height: 200px;"></textarea>
         </div>
     </div>
     <div class="keyvaluepair">

Modified: steve/trunk/pytest/www/htdocs/js/steve_rest.js
URL: http://svn.apache.org/viewvc/steve/trunk/pytest/www/htdocs/js/steve_rest.js?rev=1668461&r1=1668460&r2=1668461&view=diff
==============================================================================
--- steve/trunk/pytest/www/htdocs/js/steve_rest.js (original)
+++ steve/trunk/pytest/www/htdocs/js/steve_rest.js Sun Mar 22 19:34:03 2015
@@ -462,6 +462,7 @@ function createIssue(election) {
 	var description = document.getElementById('description').value;
 	var seconds = document.getElementById('seconds').value
 	var nominatedby = document.getElementById('nominatedby').value
+	var candidates = document.getElementById('candidates').value
 	
 	if (!iid || iid.length == 0) {
 		iid = parseInt(Math.random()*987654321).toString(16).toLowerCase()
@@ -472,7 +473,8 @@ function createIssue(election) {
 		title: title,
 		description: description,
 		nominatedby: nominatedby,
-		seconds: seconds
+		seconds: seconds,
+		candidates: candidates
 	}, undefined, createIssueCallback, { election: election, issue: iid})
 }