From ff4fbeda386505f5ebb0575a92fe0ef4398e4b18 Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Sun, 19 Jan 2020 22:47:11 +0100 Subject: Fix external URL prefix for SelectRemote and TabulatorRemote components --- .../src/main/kotlin/pl/treksoft/kvision/remote/CallAgent.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kvision-modules') diff --git a/kvision-modules/kvision-remote/src/main/kotlin/pl/treksoft/kvision/remote/CallAgent.kt b/kvision-modules/kvision-remote/src/main/kotlin/pl/treksoft/kvision/remote/CallAgent.kt index eca6dbb0..5112a49c 100644 --- a/kvision-modules/kvision-remote/src/main/kotlin/pl/treksoft/kvision/remote/CallAgent.kt +++ b/kvision-modules/kvision-remote/src/main/kotlin/pl/treksoft/kvision/remote/CallAgent.kt @@ -125,7 +125,7 @@ open class CallAgent { beforeSend: ((JQueryXHR, JQueryAjaxSettings) -> Boolean)? = null ): Promise { return Promise { resolve, reject -> - jQuery.ajax(url, obj { + jQuery.ajax(urlPrefix + url, obj { this.contentType = if (contentType != "multipart/form-data") contentType else false this.data = data this.method = method.name -- cgit