aboutsummaryrefslogtreecommitdiff
path: root/kvision-modules/kvision-bootstrap-select/src/main/kotlin
diff options
context:
space:
mode:
Diffstat (limited to 'kvision-modules/kvision-bootstrap-select/src/main/kotlin')
-rw-r--r--kvision-modules/kvision-bootstrap-select/src/main/kotlin/pl/treksoft/kvision/form/select/AjaxOptions.kt3
1 files changed, 2 insertions, 1 deletions
diff --git a/kvision-modules/kvision-bootstrap-select/src/main/kotlin/pl/treksoft/kvision/form/select/AjaxOptions.kt b/kvision-modules/kvision-bootstrap-select/src/main/kotlin/pl/treksoft/kvision/form/select/AjaxOptions.kt
index cfda10e2..9b549cba 100644
--- a/kvision-modules/kvision-bootstrap-select/src/main/kotlin/pl/treksoft/kvision/form/select/AjaxOptions.kt
+++ b/kvision-modules/kvision-bootstrap-select/src/main/kotlin/pl/treksoft/kvision/form/select/AjaxOptions.kt
@@ -21,6 +21,7 @@
*/
package pl.treksoft.kvision.form.select
+import pl.treksoft.jquery.JQueryAjaxSettings
import pl.treksoft.jquery.JQueryXHR
import pl.treksoft.kvision.KVManagerSelect.AJAX_REQUEST_DELAY
import pl.treksoft.kvision.KVManagerSelect.KVNULL
@@ -85,7 +86,7 @@ enum class DataType(internal val type: String) {
data class AjaxOptions(
val url: String? = null,
val preprocessData: ((dynamic) -> dynamic)? = null,
- val beforeSend: ((JQueryXHR, dynamic) -> dynamic)? = null,
+ val beforeSend: ((JQueryXHR, JQueryAjaxSettings) -> dynamic)? = null,
val data: dynamic = null,
val httpType: HttpType = HttpType.GET,
val dataType: DataType = DataType.JSON,