[Tynstep-svn] r191 - trunk/step/step-web/src/main/webapp/js

ChrisBurrell at crosswire.org ChrisBurrell at crosswire.org
Wed Dec 1 15:28:34 MST 2010


Author: ChrisBurrell
Date: 2010-12-01 15:28:34 -0700 (Wed, 01 Dec 2010)
New Revision: 191

Modified:
   trunk/step/step-web/src/main/webapp/js/passage_toolbar.js
Log:


Modified: trunk/step/step-web/src/main/webapp/js/passage_toolbar.js
===================================================================
--- trunk/step/step-web/src/main/webapp/js/passage_toolbar.js	2010-12-01 22:09:54 UTC (rev 190)
+++ trunk/step/step-web/src/main/webapp/js/passage_toolbar.js	2010-12-01 22:28:34 UTC (rev 191)
@@ -75,14 +75,15 @@
 	
 	//todo, make utility function
 	//set up dropdown button next to it
-	$( "<button>&nbsp;</button>" ).attr( "tabIndex", -1 )
+	var interlinearDropdownButton = $( "<button>&nbsp;</button>" ).attr( "tabIndex", -1 )
 	.attr( "title", "Show all Bible versions" )
 	.insertAfter( interlinearSelector )
 	.button({
 		icons: {
 			primary: "ui-icon-triangle-1-s"
 		},
-		text: false
+		text: false,
+		disabled: true
 	})
 	.removeClass( "ui-corner-all" )
 	.addClass( "ui-corner-right ui-button-icon no-left-border" )
@@ -101,9 +102,12 @@
 	interlinearButton.click(function() {
 		if($(this).attr('checked')) {
 			interlinearSelector.removeAttr("disabled");
+			interlinearDropdownButton.button("enable");
 			interlinearSelector.focus();
 		} else {
 			interlinearSelector.attr("disabled", "disabled");
+			interlinearDropdownButton.attr("disabled", "disabled");
+			interlinearDropdownButton.button("disable");
 		}
 	});
 }




More information about the Tynstep-svn mailing list