tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kelvingood...@apache.org
Subject svn commit: r905698 - /tuscany/sandbox/kgoodson/jagg/src/main/resources/uiservices/plan.html
Date Tue, 02 Feb 2010 16:40:16 GMT
Author: kelvingoodson
Date: Tue Feb  2 16:40:08 2010
New Revision: 905698

URL: http://svn.apache.org/viewvc?rev=905698&view=rev
Log:
add note field

Modified:
    tuscany/sandbox/kgoodson/jagg/src/main/resources/uiservices/plan.html

Modified: tuscany/sandbox/kgoodson/jagg/src/main/resources/uiservices/plan.html
URL: http://svn.apache.org/viewvc/tuscany/sandbox/kgoodson/jagg/src/main/resources/uiservices/plan.html?rev=905698&r1=905697&r2=905698&view=diff
==============================================================================
--- tuscany/sandbox/kgoodson/jagg/src/main/resources/uiservices/plan.html (original)
+++ tuscany/sandbox/kgoodson/jagg/src/main/resources/uiservices/plan.html Tue Feb  2 16:40:08
2010
@@ -27,6 +27,7 @@
 
 	//@Reference
 	var planView = new tuscany.sca.Reference("plan");
+	var project = "TUSCANY";
 	var ms;
 	
 	function plan_getResponse(plan,exception) {
@@ -39,7 +40,7 @@
 
 		 
 
-		var mschoice = 'Add new Work Item for JIRA: <input type="text" name="JIRA" value="TUSCANY-">in
Milestone<select name="mschoice">';
+		var mschoice = 'Add new Work Item for JIRA: <input type="text" name="JIRA" value="'+project+'-">in
Milestone<select name="mschoice">';
 		for(var i=0; i<ms.length; i++) {
 			mscontent += "<tr><th colspan=\"6\" align=\"left\">Milestone " + ms[i].ID
+ "</th></tr>";
 			mschoice+='<option>'+ms[i].ID+'</option>';
@@ -49,6 +50,7 @@
 							"<th>Jira title</th>"+
 							"<th>Jira Assigned To</th>"+
 							"<th>Status</th>"+
+							"<th>Note</th>"+
 						"</tr>";
 			for (var j=0; j<mswi.length; j++) {
 				mscontent +="<tr>";
@@ -61,12 +63,14 @@
 				if(mswi[j].jiraData!= null) {
 					mscontent += "<td>"+mswi[j].jiraData.title+"</td>"+
 					"<td>"+mswi[j].jiraData.assignedTo+"</td>"+
-					"<td>"+mswi[j].jiraData.status+"</td>"+
-					"<td></td>";
+					"<td>"+mswi[j].jiraData.status+"</td><td>";
 				} else {
-					mscontent += "<td colspan=\"4\"></td>";
+					mscontent += "<td colspan=\"3\"></td>";
 				}
-				mscontent += "</tr>";
+				if(mswi[j].note != null) {
+				  mscontent += mswi[j].note;
+				}
+				mscontent+="</td></tr>";
 			}
 
 		}



Mime
View raw message