From c4da0395fa11db544d31fa9df3140128f154fcc0 Mon Sep 17 00:00:00 2001 From: Marek Baczynski Date: Wed, 5 Apr 2023 21:30:52 +0200 Subject: [PATCH 1/2] added how to on adding users --- readme.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/readme.md b/readme.md index 2ba8336..010f0b2 100644 --- a/readme.md +++ b/readme.md @@ -53,5 +53,11 @@ AND DONE! Congratulations! You have added a part to the database! Only 563945679 * For the Datasheet, you have the option of either uploading a PDF that you have on your computer, or just pasting a link you found on the internet. If you upload a file, it will be stored on our servers, so that means we will have it even after it gets completely removed from the internet. Pasting a link is quicker, though, so I get it if you do that instead. * The Notes field is for notes. +### Adding users +* go to https://elab.kth.se/parts/userEditor +* add the new user with the + thing in the bottom right +* Fun fact: any user can add more users. It's like the plague +* Fun fact 2: Don't add users manualy via the database pls and tank you. + ## Work in progress The system is currently being worked on. No touchy! -- 2.39.5 From 0c8ebeea3b38d768548198625957d768f93f2f86 Mon Sep 17 00:00:00 2001 From: Marek Baczynski Date: Mon, 19 Feb 2024 18:38:29 +0100 Subject: [PATCH 2/2] fixed inability to edit parts --- parts/static/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parts/static/script.js b/parts/static/script.js index 045f7f0..ffe866d 100755 --- a/parts/static/script.js +++ b/parts/static/script.js @@ -75,7 +75,7 @@ function end_edit() { } function save(partID) { - if (!$('#location-dropdown').val() || ('#location-dropdown').val()== -1 ) { + if (!$('#location-dropdown').val() || ($'#location-dropdown').val()== -1 ) { alert('Please select a location.'); return; } -- 2.39.5