Bugfixes
This commit is contained in:
parent
e971cffc95
commit
027b7e011e
2 changed files with 3 additions and 2 deletions
|
@ -142,7 +142,7 @@ main = ->
|
||||||
addresses: [null]
|
addresses: [null]
|
||||||
$.get "./res/php/savelist.php", {"data": data}, (data) ->
|
$.get "./res/php/savelist.php", {"data": data}, (data) ->
|
||||||
if data is "0"
|
if data is "0"
|
||||||
alert "Template created sucessfully"
|
alert "List created sucesfully"
|
||||||
$("#address_list").append """
|
$("#address_list").append """
|
||||||
<option value="#{filename}">#{filename}</option>
|
<option value="#{filename}">#{filename}</option>
|
||||||
"""
|
"""
|
||||||
|
@ -180,6 +180,7 @@ main = ->
|
||||||
<option value="none">None Selected</option>
|
<option value="none">None Selected</option>
|
||||||
"""
|
"""
|
||||||
updateAddressLists()
|
updateAddressLists()
|
||||||
|
updateAddresss $("#address_list").val()
|
||||||
$(".remove_list").fadeOut()
|
$(".remove_list").fadeOut()
|
||||||
else
|
else
|
||||||
alert "Failed to delete template."
|
alert "Failed to delete template."
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
# COPYRIGHT (c) 2016 Marcel Kapfer (mmk2410)
|
# COPYRIGHT (c) 2016 Marcel Kapfer (mmk2410)
|
||||||
# MIT License
|
# MIT License
|
||||||
|
|
||||||
if (0 < $_FILES['userfile']['error']) P{
|
if (0 < $_FILES['userfile']['error']) {
|
||||||
echo "Error: " . $_FILES['userfile']['error'] . "<br>";
|
echo "Error: " . $_FILES['userfile']['error'] . "<br>";
|
||||||
} else {
|
} else {
|
||||||
move_uploaded_file($_FILES['userfile']['tmp_name'], "../../assets/file.bin");
|
move_uploaded_file($_FILES['userfile']['tmp_name'], "../../assets/file.bin");
|
||||||
|
|
Reference in a new issue