Index: trunk/webapps/einotebook/scripts/Incident.js
===================================================================
--- trunk/webapps/einotebook/scripts/Incident.js	(revision 359)
+++ trunk/webapps/einotebook/scripts/Incident.js	(revision 468)
@@ -17,11 +17,16 @@
 	//========== public methods ==========//
 	this.html = html;
-	this.expandAction = expandAction;
+    this.setSummary = setSummary;
 	
 	//========== private methods ==========//
 	this.formatHeader = formatHeader;
-	this.expandOption = expandOption;
-	this.expandOptionSymbol = expandOptionSymbol;
-	
+
+    /** Setter for summary field */
+	function setSummary(description)
+    {
+        this.summary = description;
+    }
+    
+    /**
 	/**
 	 * @return The html representation of this incident;
@@ -35,5 +40,5 @@
 			   "<tr>" + 
 			   "<td class='incidentSummary' id='summary" + this.number + "'>" + 
-			     (this.expanded ? this.summary : "") + "</td>" +
+			     this.summary + "</td>" +
 			   "</tr>" + 
 			   "</table>";
@@ -50,5 +55,5 @@
 		return "<table class='incidentHeader'>" +
 				"<tr class='incidentHeader'>" +
-				"<td class='incidentExpandOption'>" + this.expandOption() + "</td>" +
+				"<td class='incidentExpandOption'></td>" +
 				"<td class='incidentTime'>Time: " + this.time.format() + "</td>" +
 				"<td class='incidentNumber'>" + this.number + "</td>" +
@@ -58,46 +63,4 @@
 	}
 	
-	/**
-	 * @return The html that for the + or - symbol that expands or collapses the incident.
-	 */
-	function expandOption()
-	{
-		return "<button class='incidentExpandButton' " +
-				"id='expandOption" + this.number + "' onclick='incidents.get(" + 
-				this.number + ").expandAction()'>" + this.expandOptionSymbol() + 
-				"</button>";
-	}
 	
-	/**
-	 * Returns the symbol for the expand option.
-	 * @return Either "+" or "-" depending on whether this incidents is collapsed or 
-	 *         expanded.
-	 */
-	function expandOptionSymbol()
-	{
-		return this.expanded == true ? "&ndash;" : "+";
-	}
-	
-	/**
-	 * Performs the action of clicking on the + or - symbol that expands or collapses 
-	 * the incident.
-	 */
-	function expandAction()
-	{
-		if (this.expanded)
-		{
-			incidents.doc.getElementById("summary" + this.number).innerHTML = "";
-			incidents.doc.getElementById("expandOption" + this.number).innerHTML = "+";
-		}
-		else
-		{
-			incidents.doc.getElementById("summary" + this.number).innerHTML = 
-				this.summary;
-			incidents.doc.getElementById("expandOption" + this.number).innerHTML = 
-				"&ndash;";
-		}
-		
-		this.expanded = !this.expanded;
-		
-	}
 }
