aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/pl/treksoft/kvision/KVManager.kt
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2018-03-29 01:05:02 +0200
committerRobert Jaros <rjaros@finn.pl>2018-03-29 01:05:02 +0200
commit5ff62fa68f1c6d9693aeb4c27116b77c43e1a309 (patch)
tree98755ab99b1920ebfa22fd0e26229560b5a68f4f /src/main/kotlin/pl/treksoft/kvision/KVManager.kt
parent8a1370e0f661d2c90fd5aed8e868341119a866cd (diff)
downloadkvision-5ff62fa68f1c6d9693aeb4c27116b77c43e1a309.tar.gz
kvision-5ff62fa68f1c6d9693aeb4c27116b77c43e1a309.tar.bz2
kvision-5ff62fa68f1c6d9693aeb4c27116b77c43e1a309.zip
Components for file upload.
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")