[js-embedded-discovery] 01/02: untabify

Rod Widdowson rdw at steadingsoftware.com
Tue Jun 10 12:19:16 UTC 2025


This is an automated email from the git hooks/post-receive script.

rdw pushed a commit to branch main
in repository js-embedded-discovery.

View the commit online:
http://git.shibboleth.net/view/?p=js-embedded-discovery.git;a=commit;h=53ab702a9fec8ebadf7c296256ed9654235242d7

commit 53ab702a9fec8ebadf7c296256ed9654235242d7
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Mon Jun 9 20:17:03 2025 +0100

    untabify
---
 src/javascript/typeahead.js | 40 ++++++++++++++++++++--------------------
 1 file changed, 20 insertions(+), 20 deletions(-)

diff --git a/src/javascript/typeahead.js b/src/javascript/typeahead.js
index 72f7419..8e8cb91 100644
--- a/src/javascript/typeahead.js
+++ b/src/javascript/typeahead.js
@@ -296,26 +296,26 @@ TypeAheadControl.prototype.populateDropDown = function(list) {
         li.id='IdPSelectOption' + i;
         str = list[i][0];
 
-	if (null !== list[i][2]) {
-
-	    img = document.createElement('img');
-	    img.src = list[i][2];
-	    img.width = 16;
-	    img.height = 16;
-	    img.alt = '';
-	    li.appendChild(img);
-	    //
-	    // trim string back further in this case
-	    //
-	    if (str.length > this.maxchars - 2) {
-		str = str.substring(0, this.maxchars - 2);
-	    }
-	    str = ' ' + str;
-	} else {
-	    if (str.length > this.maxchars) {
-		str = str.substring(0, this.maxchars);
-	    }
-	}
+        if (null !== list[i][2]) {
+
+            img = document.createElement('img');
+            img.src = list[i][2];
+            img.width = 16;
+            img.height = 16;
+            img.alt = '';
+            li.appendChild(img);
+            //
+            // trim string back further in this case
+            //
+            if (str.length > this.maxchars - 2) {
+                str = str.substring(0, this.maxchars - 2);
+            }
+            str = ' ' + str;
+        } else {
+            if (str.length > this.maxchars) {
+                str = str.substring(0, this.maxchars);
+            }
+        }
         li.appendChild(document.createTextNode(str));
         li.setAttribute('role', 'option');
         this.dropDown.appendChild(li);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list