Skip to content
This repository
Browse code

Change tabIndex to tabindex for consistency with XHTML spec.

  • Loading branch information...
commit 974322d58f60a7ee9f70e48dfcaf171b50694fcf 1 parent 4647784
Dave Whittaker authored May 10, 2012
2  persistence/record/src/main/scala/net/liftweb/record/field/BooleanField.scala
@@ -40,7 +40,7 @@ trait BooleanTypedField extends TypedField[Boolean] {
40 40
   def setFromString(s: String): Box[Boolean] = setBox(tryo(toBoolean(s)))
41 41
 
42 42
   private def elem(attrs: SHtml.ElemAttr*) =
43  
-      SHtml.checkbox(valueBox openOr false, (b: Boolean) => this.setBox(Full(b)), (("tabIndex" -> tabIndex.toString): SHtml.ElemAttr) :: attrs.toList: _*)
  43
+      SHtml.checkbox(valueBox openOr false, (b: Boolean) => this.setBox(Full(b)), (("tabindex" -> tabIndex.toString): SHtml.ElemAttr) :: attrs.toList: _*)
44 44
 
45 45
   def toForm: Box[NodeSeq] =
46 46
     // FIXME? no support for optional_?
3  persistence/record/src/test/scala/net/liftweb/record/FieldSpec.scala
@@ -189,7 +189,6 @@ object FieldSpec extends Specification("Record Field Specification") {
189 189
               case _ => false
190 190
             }) andThen "* [value]" #> ".*"))(fprime)
191 191
             val ret: Boolean = Helpers.compareXml(f, fp)
192  
-
193 192
             ret must_== true
194 193
           }
195 194
         }
@@ -217,7 +216,7 @@ object FieldSpec extends Specification("Record Field Specification") {
217 216
       rec.mandatoryBooleanField,
218 217
       JsTrue,
219 218
       JBool(bool),
220  
-      Full(<input checked="checked" tabIndex="1" value="true" type="checkbox" name=".*" id="mandatoryBooleanField_id"></input><input value="false" type="hidden" name=".*"></input>)
  219
+      Full(<input checked="checked" tabindex="1" value="true" type="checkbox" name=".*" id="mandatoryBooleanField_id"></input><input value="false" type="hidden" name=".*"></input>)
221 220
     )
222 221
     "support java.lang.Boolean" in {
223 222
       rec.mandatoryBooleanField.setFromAny(java.lang.Boolean.TRUE)

0 notes on commit 974322d

Please sign in to comment.
Something went wrong with that request. Please try again.