diff --git a/parts/static/script.js b/parts/static/script.js index 4081da5..9714d0e 100644 --- a/parts/static/script.js +++ b/parts/static/script.js @@ -248,7 +248,9 @@ function container_onchange() { } function octopartFetch(){ + $('#magic-autofill-button').attr('disabled', 'disabled'); $.getJSON(rootURL + 'fetchOctopartSnippet/' + $('#partno-input').val()).done(function(json){ + $('#magic-autofill-button').removeAttr('disabled'); if (json['result']=='ok'){ $('#description-input').val(json['snippet']); }else{ diff --git a/parts/static/style.css b/parts/static/style.css index 7356790..46aa75d 100644 --- a/parts/static/style.css +++ b/parts/static/style.css @@ -313,6 +313,16 @@ table#details { margin-top: 0; } +#magical_autofill{ + font-size: small; +} + +a.small_link{ + text-decoration: none; + color: #B0B0B0; + font-weight: 600; +} + .details-header { color: #013A3A; } diff --git a/parts/templates/partsearch.html b/parts/templates/partsearch.html index 3fbacfb..77b0b3e 100644 --- a/parts/templates/partsearch.html +++ b/parts/templates/partsearch.html @@ -59,7 +59,7 @@

DESCRIPTION

- + powered by OctoPartâ„¢ DATASHEET: OR: diff --git a/readme.md b/readme.md index c61fba2..f219947 100644 --- a/readme.md +++ b/readme.md @@ -9,7 +9,7 @@ The system allows searching for parts in ELAB by part name or a description text Python, and the following packages: * flask -* flask-login +* requests * sqlalchemy * werkzeug * pillow