You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@steve.apache.org by ti...@apache.org on 2026/02/04 15:19:00 UTC
(steve) 02/03: Show ASF ID for candidates as well
This is an automated email from the ASF dual-hosted git repository.
tison pushed a commit to branch asfid
in repository https://gitbox.apache.org/repos/asf/steve.git
commit 0f5fff51ee0b1a204f4c021915085a54c221ee1e
Author: tison <wa...@gmail.com>
AuthorDate: Wed Feb 4 23:18:36 2026 +0800
Show ASF ID for candidates as well
Signed-off-by: tison <wa...@gmail.com>
---
pysteve/www/htdocs/js/steve_rest.js | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/pysteve/www/htdocs/js/steve_rest.js b/pysteve/www/htdocs/js/steve_rest.js
index ce1ffd4..38fb63a 100644
--- a/pysteve/www/htdocs/js/steve_rest.js
+++ b/pysteve/www/htdocs/js/steve_rest.js
@@ -393,9 +393,11 @@ function removeEditCandidate(indice) {
function addEditCandidate() {
var name = window.prompt("Enter name of candidate:")
+ var asfid = window.prompt("Enter ASF ID of candidate:")
if (name) {
edit_i.candidates.push({
name: name,
+ asfid: asfid,
statement: "No statement made"
})
}
@@ -412,12 +414,14 @@ function renderEditCandidates() {
s++;
var candidate = edit_i.candidates[c]
var name = candidate.name
+ var asfid = candidate.asfid
var statement = candidate.statement
var seconds = candidate.seconds_txt
var h = document.createElement('h4')
h.innerHTML = name + " -   <a href='javascript:void(removeEditCandidate(\"" + name + "\"));'>Delete</a>"
obj.appendChild(h)
obj.appendChild(keyvaluepair("name_" + c, "Name:", "text", name, false, "edit_i.candidates[" + c + "].name = this.value"))
+ obj.appendChild(keyvaluepair("asfid_" + c, "ASF ID:", "text", asfid, false, "edit_i.candidates[" + c + "].asfid = this.value"))
obj.appendChild(keyvaluepair("statement_" + c, "Statement:", "textarea", statement ? statement : "", false, "edit_i.candidates[" + c + "].statement = this.value"))
obj.appendChild(keyvaluepair("seconds_txt_" + c, "Nomination/Seconds:", "textarea", seconds ? seconds : "", false, "edit_i.candidates[" + c + "].seconds_txt = this.value"))
obj.appendChild(document.createElement('hr'))