aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/pl/treksoft/kvision/KVManager.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/pl/treksoft/kvision/KVManager.kt')
-rw-r--r--src/main/kotlin/pl/treksoft/kvision/KVManager.kt18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/main/kotlin/pl/treksoft/kvision/KVManager.kt b/src/main/kotlin/pl/treksoft/kvision/KVManager.kt
index 121f0ab7..ee7b2d43 100644
--- a/src/main/kotlin/pl/treksoft/kvision/KVManager.kt
+++ b/src/main/kotlin/pl/treksoft/kvision/KVManager.kt
@@ -44,7 +44,7 @@ external fun require(name: String): dynamic
/**
* Internal singleton object which initializes and configures KVision framework.
*/
-@Suppress("EmptyCatchBlock")
+@Suppress("EmptyCatchBlock", "TooGenericExceptionCaught")
internal object KVManager {
internal const val AJAX_REQUEST_DELAY = 300
internal const val KVNULL = "#kvnull"
@@ -118,6 +118,22 @@ internal object KVManager {
require("element-resize-event")
} catch (e: Throwable) {
}
+ private val bootstrapFileinputCss = try {
+ require("bootstrap-fileinput/css/fileinput.min.css")
+ } catch (e: Throwable) {
+ }
+ private val bootstrapFileinputCssFa = try {
+ require("bootstrap-fileinput/themes/explorer-fa/theme.min.css")
+ } catch (e: Throwable) {
+ }
+ private val bootstrapFileinput = try {
+ require("bootstrap-fileinput")
+ } catch (e: Throwable) {
+ }
+ private val bootstrapFileinputFa = try {
+ require("bootstrap-fileinput/themes/explorer-fa/theme.min.js")
+ } catch (e: Throwable) {
+ }
private val resizable = require("jquery-resizable-dom")
internal val fecha = require("fecha")