aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/pl/treksoft/kvision/dropdown
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2017-11-06 00:20:25 +0100
committerRobert Jaros <rjaros@finn.pl>2017-11-06 00:20:25 +0100
commit1c742ec958a043519e58dcf53bb3b3c92bf3e94a (patch)
tree0d4804a58b0a59f28029c8f65897caf70e4ade35 /src/main/kotlin/pl/treksoft/kvision/dropdown
parent2b0f687b17bdf0144262a20556446cfbf50a4f34 (diff)
downloadkvision-1c742ec958a043519e58dcf53bb3b3c92bf3e94a.tar.gz
kvision-1c742ec958a043519e58dcf53bb3b3c92bf3e94a.tar.bz2
kvision-1c742ec958a043519e58dcf53bb3b3c92bf3e94a.zip
Ajax support for SelectInput
Diffstat (limited to 'src/main/kotlin/pl/treksoft/kvision/dropdown')
-rw-r--r--src/main/kotlin/pl/treksoft/kvision/dropdown/DropDown.kt8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/kotlin/pl/treksoft/kvision/dropdown/DropDown.kt b/src/main/kotlin/pl/treksoft/kvision/dropdown/DropDown.kt
index ade2937b..3f6ca828 100644
--- a/src/main/kotlin/pl/treksoft/kvision/dropdown/DropDown.kt
+++ b/src/main/kotlin/pl/treksoft/kvision/dropdown/DropDown.kt
@@ -139,17 +139,17 @@ open class DropDown(text: String, elements: List<StringPair>? = null, icon: Stri
override fun afterInsert(node: VNode) {
this.getElementJQuery()?.on("show.bs.dropdown", { e, _ ->
if (!list.visible) list.visible = true
- this.dispatchEvent("showBsDropdown", obj({ detail = e }))
+ this.dispatchEvent("showBsDropdown", obj { detail = e })
})
this.getElementJQuery()?.on("shown.bs.dropdown", { e, _ ->
- this.dispatchEvent("shownBsDropdown", obj({ detail = e }))
+ this.dispatchEvent("shownBsDropdown", obj { detail = e })
})
this.getElementJQuery()?.on("hide.bs.dropdown", { e, _ ->
- this.dispatchEvent("hideBsDropdown", obj({ detail = e }))
+ this.dispatchEvent("hideBsDropdown", obj { detail = e })
})
this.getElementJQuery()?.on("hidden.bs.dropdown", { e, _ ->
if (list.visible) list.visible = false
- this.dispatchEvent("hiddenBsDropdown", obj({ detail = e }))
+ this.dispatchEvent("hiddenBsDropdown", obj { detail = e })
})
}