diff options
author | Robert Jaros <rjaros@finn.pl> | 2020-05-23 01:24:14 +0200 |
---|---|---|
committer | Robert Jaros <rjaros@finn.pl> | 2020-05-23 01:24:14 +0200 |
commit | 8f4570f5aa288aa4c2efcbd6c89da65f449b0c2b (patch) | |
tree | 0a15387564b27bb29f013128dbc533483f6c1631 | |
parent | 33baa185f82b89adc802971ac0e4b6bf9dd1e33f (diff) | |
download | kvision-8f4570f5aa288aa4c2efcbd6c89da65f449b0c2b.tar.gz kvision-8f4570f5aa288aa4c2efcbd6c89da65f449b0c2b.tar.bz2 kvision-8f4570f5aa288aa4c2efcbd6c89da65f449b0c2b.zip |
Fix for the TabulatorRemote component regression.
-rw-r--r-- | kvision-modules/kvision-tabulator-remote/src/main/kotlin/pl/treksoft/kvision/tabulator/TabulatorRemote.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kvision-modules/kvision-tabulator-remote/src/main/kotlin/pl/treksoft/kvision/tabulator/TabulatorRemote.kt b/kvision-modules/kvision-tabulator-remote/src/main/kotlin/pl/treksoft/kvision/tabulator/TabulatorRemote.kt index 21bfc5d4..7e2b533e 100644 --- a/kvision-modules/kvision-tabulator-remote/src/main/kotlin/pl/treksoft/kvision/tabulator/TabulatorRemote.kt +++ b/kvision-modules/kvision-tabulator-remote/src/main/kotlin/pl/treksoft/kvision/tabulator/TabulatorRemote.kt @@ -73,8 +73,8 @@ open class TabulatorRemote<T : Any, E : Any>( val callAgent = CallAgent() @Suppress("UnsafeCastFromDynamic") - val beforeSend: ((JQueryXHR, JQueryAjaxSettings) -> Boolean)? = options.ajaxConfig.beforeSend - options.ajaxConfig.beforeSend = undefined + val beforeSend: ((JQueryXHR, JQueryAjaxSettings) -> Boolean)? = options.ajaxConfig?.beforeSend + if (beforeSend != null) options.ajaxConfig.beforeSend = undefined options.ajaxURL = urlPrefix + url.drop(1) options.ajaxRequestFunc = { _, _, params -> val page = params.page |