From a1eb2b794e08fb3732f6fd16158b617f6366dec0 Mon Sep 17 00:00:00 2001 From: Cohee1207 Date: Wed, 28 Jun 2023 15:48:12 +0300 Subject: [PATCH] Rearrange Horde blocks --- public/index.html | 8 +++++--- public/scripts/horde.js | 8 ++++++++ 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/public/index.html b/public/index.html index 2ab1e8c86..c3bdb114d 100644 --- a/public/index.html +++ b/public/index.html @@ -1308,6 +1308,10 @@
    +
  • + Avoid sending sensitive information to the Horde. + Review the Privacy statement +
  • Register a Horde account for faster queue times @@ -1347,13 +1351,11 @@
    For privacy reasons, your API key will be hidden after you reload the page.

    - Model + Models

    - You can select multiple models.
    Avoid sending - sensitive information to the Horde. Learn more
    diff --git a/public/scripts/horde.js b/public/scripts/horde.js index 51fcd9c4b..061b1c640 100644 --- a/public/scripts/horde.js +++ b/public/scripts/horde.js @@ -271,6 +271,14 @@ jQuery(function () { placeholder: 'Select Horde models', allowClear: true, closeOnSelect: false, + templateSelection: function(data) { + // Customize the pillbox text by shortening the full text + return data.id; + }, + templateResult: function(data) { + // Return the full text for the dropdown + return data.text; + }, }); } })