[Tynstep-svn] r213 - in trunk/step/step-web/src/main/webapp: . js

ChrisBurrell at crosswire.org ChrisBurrell at crosswire.org
Sun Feb 27 14:55:01 MST 2011


Author: ChrisBurrell
Date: 2011-02-27 14:55:01 -0700 (Sun, 27 Feb 2011)
New Revision: 213

Modified:
   trunk/step/step-web/src/main/webapp/index.jsp
   trunk/step/step-web/src/main/webapp/js/interlinear_popup.js
Log:
commiting changes to table to line things up

Modified: trunk/step/step-web/src/main/webapp/index.jsp
===================================================================
--- trunk/step/step-web/src/main/webapp/index.jsp	2011-02-27 17:41:01 UTC (rev 212)
+++ trunk/step/step-web/src/main/webapp/index.jsp	2011-02-27 21:55:01 UTC (rev 213)
@@ -65,7 +65,7 @@
 		<div id="rightPaneMenu" class="innerMenus"></div>
 	    <div class="passageText ui-widget">
 	    	<div class="headingContainer">
-		    	<input id="leftPassageReference" class="heading editable passageReference" size="30" value="Revelation 1" />
+		    	<input id="leftPassageReference" class="heading editable passageReference" size="30" value="Jhn 1:1;1 Jhn 1:1" />
 		    	<input id="leftPassageBook" class="heading editable passageVersion" size="5" value="ESV" />
 	    	</div>
 	    	<div class="passageContent"></div>

Modified: trunk/step/step-web/src/main/webapp/js/interlinear_popup.js
===================================================================
--- trunk/step/step-web/src/main/webapp/js/interlinear_popup.js	2011-02-27 17:41:01 UTC (rev 212)
+++ trunk/step/step-web/src/main/webapp/js/interlinear_popup.js	2011-02-27 21:55:01 UTC (rev 213)
@@ -37,25 +37,37 @@
 	var allCheckBoxes = "";
 	var interlinearChoices = $(".interlinearChoices", this.interlinearPopup);
 	
-	
+	var row = 0;
 	for(ii = 0 ; ii < strongedVersions.length; ii++) {
 		var longName = strongedVersions[ii].label;
 		var shortName = longName.length > 20 ? shortenName(longName, 20) : longName;
 		
 		//created a checkbox for this, that adds the text if checked to the input
+		if(row % 2 == 0) {
+			allCheckBoxes += "<tr>";
+		}
+		
+		allCheckBoxes += "<td>";
 		allCheckBoxes += "<input id='il_" + ii + "' type='checkbox' value='" + strongedVersions[ii].value + "' />" +
 						  "<label for='il_" + ii + "' title='" + longName + "'>" + shortName + "</label>";
+		allCheckBoxes += "</td>";
+	
+		if(row % 2 == 0) {
+			allCheckBoxes += "</tr>";
+		}
+		
+		row++;
+		
 		allOptionsValue += strongedVersions[ii].value;
 		if(ii < strongedVersions.length -1) {
 			allOptionsValue += ',';
 		}
 	}
 	
-	var allOptions = "<input id='il_all' type='checkbox' value='" + allOptionsValue + "' />" +
-	  "<label for='il_" + ii + "'>All</label><br />";
+	var allOptions = "<tr><td><input id='il_all' type='checkbox' value='" + allOptionsValue + "' />" +
+	  "<label for='il_" + ii + "'>All</label></td><td> </td></tr>";
 	
-	interlinearChoices.append(allOptions);
-	interlinearChoices.append(allCheckBoxes);
+	interlinearChoices.append("<table>" + allOptions + allCheckBoxes + "</table>");
 }
 
 /**




More information about the Tynstep-svn mailing list