Compare commits
7
Commits
1.1-rc
..
e2003e3562
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e2003e3562 | ||
|
|
7e1f59f781 | ||
|
|
4649723f87 | ||
|
|
0b64c50f36 | ||
|
|
597898885b | ||
|
|
55033f7295 | ||
|
|
8d1237011a |
+2
-2
@@ -276,7 +276,7 @@ def alter(partID):
|
||||
return '{"status":"ok", "part_id" : ' + str(new_id) + '}'
|
||||
|
||||
@app.route('/parts/delete/<partID>')
|
||||
# @requires_auth
|
||||
@requires_auth
|
||||
def delete(partID):
|
||||
if int(partID) < 0:
|
||||
abort(400)
|
||||
@@ -285,7 +285,7 @@ def delete(partID):
|
||||
return '{"status":"ok"}'
|
||||
|
||||
@app.route('/parts/deleteLocation/<locationID>')
|
||||
# @requires_auth
|
||||
@requires_auth
|
||||
def deleteLocation(locationID):
|
||||
if int(locationID) < 0:
|
||||
abort(400)
|
||||
|
||||
@@ -185,7 +185,7 @@ function show_part_info(partID) {
|
||||
$('#edit-button').click(function() {
|
||||
init_edit(partID);
|
||||
});
|
||||
$('#delete-button').click(function() {
|
||||
$('#delete-button').off('click').on('click', function() {
|
||||
delete_entry(partID);
|
||||
});
|
||||
overlay_in();
|
||||
|
||||
@@ -8,10 +8,10 @@
|
||||
integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4="
|
||||
crossorigin="anonymous"></script>
|
||||
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400" rel="stylesheet">
|
||||
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='style.css') }}">
|
||||
<link rel="stylesheet" type="text/css" href="/parts/static/style.css">
|
||||
<script src="https://use.fontawesome.com/2fef7be393.js"></script>
|
||||
<script type="text/javascript" src="{{ url_for('static', filename='common.js') }}"></script>
|
||||
<script type="text/javascript" src="{{ url_for('static', filename='locationEditorScript.js') }}"></script>
|
||||
<script type="text/javascript" src="/parts/static/common.js"></script>
|
||||
<script type="text/javascript" src="/parts/static/locationEditorScript.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<h1>LOCATION EDITOR</h1>
|
||||
|
||||
@@ -8,12 +8,12 @@
|
||||
integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4="
|
||||
crossorigin="anonymous"></script>
|
||||
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400" rel="stylesheet">
|
||||
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='style.css') }}">
|
||||
<link rel="apple-touch-icon-precomposed" href="{{ url_for('static', filename='apple-touch-icon.png') }}">
|
||||
<link rel="stylesheet" type="text/css" href="parts/static/style.css">
|
||||
<link rel="apple-touch-icon-precomposed" href="parts/static/apple-touch-icon.png">
|
||||
|
||||
<script src="https://use.fontawesome.com/2fef7be393.js"></script>
|
||||
<script type="text/javascript" src="{{ url_for('static', filename='common.js') }}"></script>
|
||||
<script type="text/javascript" src="{{ url_for('static', filename='script.js') }}"></script>
|
||||
<script type="text/javascript" src="parts/static/common.js"></script>
|
||||
<script type="text/javascript" src="parts/static/script.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<h1>ELAB Part Search Engine</h1>
|
||||
|
||||
Reference in New Issue
Block a user