From dc880978abac2fb4956da326a0701919c011f051 Mon Sep 17 00:00:00 2001 From: davide Date: Wed, 14 Nov 2018 14:09:06 +0100 Subject: [PATCH 1/3] Updated dependencies in readme --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From f4235556f765589292c271c4b9802b6439d1072a Mon Sep 17 00:00:00 2001 From: Marek Baczynski Date: Wed, 14 Nov 2018 16:40:28 +0100 Subject: [PATCH 2/3] octopart-fetch button is mash-like-an-idiot proof --- parts/static/script.js | 2 ++ parts/templates/partsearch.html | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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/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: From 4cf02f26c4e6342b0e8091b84a3a2d4feae10f64 Mon Sep 17 00:00:00 2001 From: Marek Baczynski Date: Wed, 14 Nov 2018 16:40:40 +0100 Subject: [PATCH 3/3] octopart link pretty --- parts/static/style.css | 10 ++++++++++ 1 file changed, 10 insertions(+) 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; }