Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Issue #580
  • Loading branch information
rsoika committed May 13, 2024
1 parent b433c14 commit 65dda46
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@
https://www.w3schools.com/howto/howto_js_autocomplete.asp
-->
<h:commandScript name="llmSearch" action="#{llmSuggestController.search()}" rendered="#{llmSuggestController!=null}"
render="autocomplete-resultlist-ml" onevent="autocompleteShowResult" />

render="autocomplete-resultlist-llm" onevent="autocompleteShowResult" />

<script type="text/javascript">
/*<![CDATA[*/
Expand All @@ -30,10 +29,10 @@

// init ml input fields...
$(document).ready(function () {
if (mlResult) {
if (llmSuggestResult) {
fullItemList = $("input[data-item]");
// if suggest mode than update the style for input items associated with ai.suggest.items.
if (mlResult.mode == 'ON') {
if (llmSuggestResult.mode == 'ON') {
// find all ml data items
$(fullItemList).each(function () {
// select data-item value
Expand All @@ -48,7 +47,7 @@
}

// test if this data-item is a ml-item...
if (mlResult.items.indexOf(dataItem) > -1) {
if (llmSuggestResult.items.indexOf(dataItem) > -1) {
// ok we have a llm suggest-item
$(this).addClass("imixs-llm");
if (!bIgnoreInput) {
Expand Down

0 comments on commit 65dda46

Please sign in to comment.