aboutsummaryrefslogtreecommitdiff
path: root/kvision-modules
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2020-04-26 02:44:45 +0200
committerRobert Jaros <rjaros@finn.pl>2020-04-26 02:44:45 +0200
commite321b1cfa13176928349c33635fed06c37425c1c (patch)
tree5e1069b0889d9235e4d2166cd6011f397d2e447e /kvision-modules
parent321135f1806b19caad2e0e95a68f809ea81ecf66 (diff)
downloadkvision-e321b1cfa13176928349c33635fed06c37425c1c.tar.gz
kvision-e321b1cfa13176928349c33635fed06c37425c1c.tar.bz2
kvision-e321b1cfa13176928349c33635fed06c37425c1c.zip
Upgrade bootstrap select to 1.13.16. Fix detection of BS 4.
Diffstat (limited to 'kvision-modules')
-rw-r--r--kvision-modules/kvision-bootstrap-select/build.gradle.kts2
-rw-r--r--kvision-modules/kvision-bootstrap-select/src/main/kotlin/pl/treksoft/kvision/KVManagerSelect.kt1
2 files changed, 2 insertions, 1 deletions
diff --git a/kvision-modules/kvision-bootstrap-select/build.gradle.kts b/kvision-modules/kvision-bootstrap-select/build.gradle.kts
index 6799ac93..1cd4dffe 100644
--- a/kvision-modules/kvision-bootstrap-select/build.gradle.kts
+++ b/kvision-modules/kvision-bootstrap-select/build.gradle.kts
@@ -16,7 +16,7 @@ kotlin {
dependencies {
implementation(kotlin("stdlib-js"))
api(rootProject)
- implementation(npm("bootstrap-select", "1.13.15"))
+ implementation(npm("bootstrap-select", "1.13.16"))
implementation(npm("ajax-bootstrap-select", "rjaros/Ajax-Bootstrap-Select"))
testImplementation(kotlin("test-js"))
}
diff --git a/kvision-modules/kvision-bootstrap-select/src/main/kotlin/pl/treksoft/kvision/KVManagerSelect.kt b/kvision-modules/kvision-bootstrap-select/src/main/kotlin/pl/treksoft/kvision/KVManagerSelect.kt
index c1e7e244..46ada8fa 100644
--- a/kvision-modules/kvision-bootstrap-select/src/main/kotlin/pl/treksoft/kvision/KVManagerSelect.kt
+++ b/kvision-modules/kvision-bootstrap-select/src/main/kotlin/pl/treksoft/kvision/KVManagerSelect.kt
@@ -31,6 +31,7 @@ internal object KVManagerSelect {
internal const val KVNULL = "#kvnull"
init {
+ js("if ($.fn.dropdown === undefined) { $.fn.dropdown={'Constructor' : {'VERSION' : '4.0.0'}}; };")
require("bootstrap-select/dist/css/bootstrap-select.min.css")
require("bootstrap-select/dist/js/bootstrap-select.min.js")
require("./js/locales/bootstrap-select/bootstrap-select-i18n.min.js")