You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@community.apache.org by se...@apache.org on 2023/03/20 16:32:50 UTC

svn commit: r1908580 - in /comdev/helpwanted.apache.org/site/js: coffee/hw.coffee hw.js

Author: sebb
Date: Mon Mar 20 16:32:50 2023
New Revision: 1908580

URL: http://svn.apache.org/viewvc?rev=1908580&view=rev
Log:
Fix variable reference

Modified:
    comdev/helpwanted.apache.org/site/js/coffee/hw.coffee
    comdev/helpwanted.apache.org/site/js/hw.js

Modified: comdev/helpwanted.apache.org/site/js/coffee/hw.coffee
URL: http://svn.apache.org/viewvc/comdev/helpwanted.apache.org/site/js/coffee/hw.coffee?rev=1908580&r1=1908579&r2=1908580&view=diff
==============================================================================
--- comdev/helpwanted.apache.org/site/js/coffee/hw.coffee (original)
+++ comdev/helpwanted.apache.org/site/js/coffee/hw.coffee Mon Mar 20 16:32:50 2023
@@ -414,7 +414,7 @@ displayItems = (json, state) ->
         "<img style='width: 20px; height: 20px; vertical-align: middle;' src='/images/level_" + (parseInt(item.difficulty)+1) + ".png'/> " +
         diff[item.difficulty] + "</td><td>" + cdate + "</td>" + add + "</tr>"
         tbl += "<tr style='display:none;' id='details_" + i + "'><td colspan='6'><b>Project:</b> " + item.project + "<br/>" +
-        "<b>Task type:</b> " + types[json.type] + "<br/>" +
+        "<b>Task type:</b> " + types[item.type] + "<br/>" +
         "<b>Requested by:</b> " + item.author + "@apache.org<br/>" +
         "<b>Created:</b> " + cdate + "<br/>" +
         "<b>Description:</b> <blockquote>" + description + "</blockquote><b>Further information: </b> <a href='" + item.url + "'>" + item.url + "</a><br/>" +

Modified: comdev/helpwanted.apache.org/site/js/hw.js
URL: http://svn.apache.org/viewvc/comdev/helpwanted.apache.org/site/js/hw.js?rev=1908580&r1=1908579&r2=1908580&view=diff
==============================================================================
--- comdev/helpwanted.apache.org/site/js/hw.js (original)
+++ comdev/helpwanted.apache.org/site/js/hw.js Mon Mar 20 16:32:50 2023
@@ -634,7 +634,7 @@ displayItems = function(json, state) {
       return "<a href='" + a + "'>" + a + "</a>";
     });
     tbl += "<tr style='cursor: pointer;' onclick=\"sw('details_" + i + "');\"><td width='68'><div class='itemNumber-yellow'>" + z + "</div>" + "<img title='" + item.type + "' style='float: left; width: 24px; height: 24px;' src='/images/icon_" + ptype + ".png'/></td>" + "<td>" + item.project + "</td>" + "<td style='text-align: left;'>" + item.title + "</td>" + "<td>" + lingos + "</td>" + "<td title='" + diff_explanation[parseInt(item.difficulty)] + "' style='text-align: left;'>" + "<img style='width: 20px; height: 20px; vertical-align: middle;' src='/images/level_" + (parseInt(item.difficulty) + 1) + ".png'/> " + diff[item.difficulty] + "</td><td>" + cdate + "</td>" + add + "</tr>";
-    tbl += "<tr style='display:none;' id='details_" + i + "'><td colspan='6'><b>Project:</b> " + item.project + "<br/>" + "<b>Task type:</b> " + types[json.type] + "<br/>" + "<b>Requested by:</b> " + item.author + "@apache.org<br/>" + "<b>Created:</b> " + cdate + "<br/>" + "<b>Description:</b> <blockquote>" + description + "</blockquote><b>Further information: </b> <a href='" + item.url + "'>" + item.url + "</a><br/>" + "<input type='button' onclick='location.href=\"/task.html?" + item.request_id + "\";' value='I am interested in this'/></td></tr>";
+    tbl += "<tr style='display:none;' id='details_" + i + "'><td colspan='6'><b>Project:</b> " + item.project + "<br/>" + "<b>Task type:</b> " + types[item.type] + "<br/>" + "<b>Requested by:</b> " + item.author + "@apache.org<br/>" + "<b>Created:</b> " + cdate + "<br/>" + "<b>Description:</b> <blockquote>" + description + "</blockquote><b>Further information: </b> <a href='" + item.url + "'>" + item.url + "</a><br/>" + "<input type='button' onclick='location.href=\"/task.html?" + item.request_id + "\";' value='I am interested in this'/></td></tr>";
   }
   tbl += "</table>";
   obj.innerHTML += tbl;