aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/pl/treksoft/kvision/modal
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2017-09-25 09:49:27 +0200
committerRobert Jaros <rjaros@finn.pl>2017-09-25 09:49:27 +0200
commit726a42ad5643840f84c289c9a6b56d6c3c9067b4 (patch)
tree61651f82b57adeb635712dca804264584d8371f1 /src/main/kotlin/pl/treksoft/kvision/modal
parente212e923e18b80d503f53271d6ba534e17b31e23 (diff)
downloadkvision-726a42ad5643840f84c289c9a6b56d6c3c9067b4.tar.gz
kvision-726a42ad5643840f84c289c9a6b56d6c3c9067b4.tar.bz2
kvision-726a42ad5643840f84c289c9a6b56d6c3c9067b4.zip
Support for SplitPanel drag and dragEnd events
Diffstat (limited to 'src/main/kotlin/pl/treksoft/kvision/modal')
-rw-r--r--src/main/kotlin/pl/treksoft/kvision/modal/Modal.kt12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/main/kotlin/pl/treksoft/kvision/modal/Modal.kt b/src/main/kotlin/pl/treksoft/kvision/modal/Modal.kt
index d9a0466f..c587e977 100644
--- a/src/main/kotlin/pl/treksoft/kvision/modal/Modal.kt
+++ b/src/main/kotlin/pl/treksoft/kvision/modal/Modal.kt
@@ -139,21 +139,17 @@ open class Modal(caption: String? = null, closeButton: Boolean = true,
backdrop = if (escape) "true" else "static"
})
this.getElementJQuery()?.on("show.bs.modal", { e, _ ->
- val event = CustomEvent("showBsModal", obj({ detail = e }))
- this.getElement()?.dispatchEvent(event)
+ this.dispatchEvent("showBsModal", obj({ detail = e }))
})
this.getElementJQuery()?.on("shown.bs.modal", { e, _ ->
- val event = CustomEvent("shownBsModal", obj({ detail = e }))
- this.getElement()?.dispatchEvent(event)
+ this.dispatchEvent("shownBsModal", obj({ detail = e }))
})
this.getElementJQuery()?.on("hide.bs.modal", { e, _ ->
- val event = CustomEvent("hideBsModal", obj({ detail = e }))
- this.getElement()?.dispatchEvent(event)
+ this.dispatchEvent("hideBsModal", obj({ detail = e }))
})
this.getElementJQuery()?.on("hidden.bs.modal", { e, _ ->
this.visible = false
- val event = CustomEvent("hiddenBsModal", obj({ detail = e }))
- this.getElement()?.dispatchEvent(event)
+ this.dispatchEvent("hiddenBsModal", obj({ detail = e }))
})
}