Merge pull request 'fixed bug where it was possible to set an empty location' (#13) from fix-empty-location into master

Reviewed-on: #13
master
marek 10 months ago
commit 1e6ac07e9e

@ -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;
}

@ -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!

Loading…
Cancel
Save