From 449db6bd5beaf50c8bc3960a8f599f4990542c3f Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Mon, 29 Mar 2021 13:47:41 +0200 Subject: [PATCH] item passed to updater of typeahead is now the complete element not just the data-value --- styles/bootstrap/application.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/styles/bootstrap/application.js b/styles/bootstrap/application.js index 8a9aa2f23..1528e629e 100644 --- a/styles/bootstrap/application.js +++ b/styles/bootstrap/application.js @@ -205,7 +205,7 @@ $(document).ready( function() { * actually provided to update the input field where you type, but here * we use it to update a second input field with the doc id. */ updater: function (item) { - strarr = item.split("#"); + strarr = item.value.split("#"); target = this.$element.data('target'); $('#'+target).attr('value', strarr[0]); return strarr[1]; @@ -233,7 +233,7 @@ $(document).ready( function() { * actually provided to update the input field, but here we use * it to set the document location. */ updater: function (item) { - strarr = item.split("#"); + strarr = item.value.split("#"); //console.log(this.$element.data('target')); target = this.$element.data('target'); $('#'+target).attr('value', strarr[0]);