diff options
author | Robert Jaros <rjaros@finn.pl> | 2018-02-24 15:56:10 +0100 |
---|---|---|
committer | Robert Jaros <rjaros@finn.pl> | 2018-02-24 15:56:10 +0100 |
commit | 1fc045c97511d8c888af3ac441c27bfb7a35ef43 (patch) | |
tree | e8bf433734bd60a73301ea8f1109ed74bca74197 /src/main | |
parent | 852eb4b2d0df2475f45642534bbe1d9d2352aa61 (diff) | |
download | kvision-1fc045c97511d8c888af3ac441c27bfb7a35ef43.tar.gz kvision-1fc045c97511d8c888af3ac441c27bfb7a35ef43.tar.bz2 kvision-1fc045c97511d8c888af3ac441c27bfb7a35ef43.zip |
Snabbdom upgrade to v0.7.1
Diffstat (limited to 'src/main')
8 files changed, 10 insertions, 10 deletions
diff --git a/src/main/kotlin/pl/treksoft/kvision/form/check/CheckInput.kt b/src/main/kotlin/pl/treksoft/kvision/form/check/CheckInput.kt index 7c67c957..9e0c1fa9 100644 --- a/src/main/kotlin/pl/treksoft/kvision/form/check/CheckInput.kt +++ b/src/main/kotlin/pl/treksoft/kvision/form/check/CheckInput.kt @@ -111,13 +111,13 @@ open class CheckInput( val sn = super.getSnAttrs().toMutableList() sn.add("type" to type.type) if (startValue) { - sn.add("checked" to "true") + sn.add("checked" to "checked") } name?.let { sn.add("name" to it) } if (disabled) { - sn.add("disabled" to "true") + sn.add("disabled" to "disabled") } extraValue?.let { sn.add("value" to it) diff --git a/src/main/kotlin/pl/treksoft/kvision/form/select/SelectInput.kt b/src/main/kotlin/pl/treksoft/kvision/form/select/SelectInput.kt index b0b7f4b3..dd8fcabd 100644 --- a/src/main/kotlin/pl/treksoft/kvision/form/select/SelectInput.kt +++ b/src/main/kotlin/pl/treksoft/kvision/form/select/SelectInput.kt @@ -245,7 +245,7 @@ open class SelectInput( sn.add("name" to it) } if (multiple) { - sn.add("multiple" to "true") + sn.add("multiple" to "multiple") } maxOptions?.let { sn.add("data-max-options" to "" + it) @@ -262,7 +262,7 @@ open class SelectInput( } } if (disabled) { - sn.add("disabled" to "true") + sn.add("disabled" to "disabled") } val btnStyle = style?.className ?: "btn-default" when (size) { diff --git a/src/main/kotlin/pl/treksoft/kvision/form/select/SelectOptGroup.kt b/src/main/kotlin/pl/treksoft/kvision/form/select/SelectOptGroup.kt index 95d8f178..3b523314 100644 --- a/src/main/kotlin/pl/treksoft/kvision/form/select/SelectOptGroup.kt +++ b/src/main/kotlin/pl/treksoft/kvision/form/select/SelectOptGroup.kt @@ -84,7 +84,7 @@ open class SelectOptGroup( sn.add("data-max-options" to "" + it) } if (disabled) { - sn.add("disabled" to "true") + sn.add("disabled" to "disabled") } return sn } diff --git a/src/main/kotlin/pl/treksoft/kvision/form/select/SelectOption.kt b/src/main/kotlin/pl/treksoft/kvision/form/select/SelectOption.kt index 141eff28..5cd23582 100644 --- a/src/main/kotlin/pl/treksoft/kvision/form/select/SelectOption.kt +++ b/src/main/kotlin/pl/treksoft/kvision/form/select/SelectOption.kt @@ -93,7 +93,7 @@ open class SelectOption( } } if (disabled) { - sn.add("disabled" to "true") + sn.add("disabled" to "disabled") } } else { sn.add("data-divider" to "true") diff --git a/src/main/kotlin/pl/treksoft/kvision/form/spinner/SpinnerInput.kt b/src/main/kotlin/pl/treksoft/kvision/form/spinner/SpinnerInput.kt index a5565d2a..23c48a80 100644 --- a/src/main/kotlin/pl/treksoft/kvision/form/spinner/SpinnerInput.kt +++ b/src/main/kotlin/pl/treksoft/kvision/form/spinner/SpinnerInput.kt @@ -191,7 +191,7 @@ open class SpinnerInput( } } if (disabled) { - sn.add("disabled" to "true") + sn.add("disabled" to "disabled") value?.let { sn.add("value" to it.toString()) } diff --git a/src/main/kotlin/pl/treksoft/kvision/form/text/AbstractTextInput.kt b/src/main/kotlin/pl/treksoft/kvision/form/text/AbstractTextInput.kt index 8467dab8..c43f94ba 100644 --- a/src/main/kotlin/pl/treksoft/kvision/form/text/AbstractTextInput.kt +++ b/src/main/kotlin/pl/treksoft/kvision/form/text/AbstractTextInput.kt @@ -117,7 +117,7 @@ abstract class AbstractTextInput( } } if (disabled) { - sn.add("disabled" to "true") + sn.add("disabled" to "disabled") } return sn } diff --git a/src/main/kotlin/pl/treksoft/kvision/form/text/RichTextInput.kt b/src/main/kotlin/pl/treksoft/kvision/form/text/RichTextInput.kt index 9e6e61b0..de8bb320 100644 --- a/src/main/kotlin/pl/treksoft/kvision/form/text/RichTextInput.kt +++ b/src/main/kotlin/pl/treksoft/kvision/form/text/RichTextInput.kt @@ -57,7 +57,7 @@ open class RichTextInput(value: String? = null, classes: Set<String> = setOf()) } } if (disabled) { - sn.add("disabled" to "true") + sn.add("disabled" to "disabled") } return sn } diff --git a/src/main/kotlin/pl/treksoft/kvision/form/time/DateTimeInput.kt b/src/main/kotlin/pl/treksoft/kvision/form/time/DateTimeInput.kt index 6004b320..9fa87195 100644 --- a/src/main/kotlin/pl/treksoft/kvision/form/time/DateTimeInput.kt +++ b/src/main/kotlin/pl/treksoft/kvision/form/time/DateTimeInput.kt @@ -150,7 +150,7 @@ open class DateTimeInput( } } if (disabled) { - sn.add("disabled" to "true") + sn.add("disabled" to "disabled") value?.let { sn.add("value" to it.toStringF(format)) } |