From 027b7e011ed3f38b36c73ad4299defff937f84bf Mon Sep 17 00:00:00 2001 From: "Marcel Kapfer (mmk2410)" Date: Sat, 9 Apr 2016 11:51:38 +0200 Subject: [PATCH] Bugfixes --- res/js/main.coffee | 3 ++- res/php/upload.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/res/js/main.coffee b/res/js/main.coffee index c4358c5..46d009f 100755 --- a/res/js/main.coffee +++ b/res/js/main.coffee @@ -142,7 +142,7 @@ main = -> addresses: [null] $.get "./res/php/savelist.php", {"data": data}, (data) -> if data is "0" - alert "Template created sucessfully" + alert "List created sucesfully" $("#address_list").append """ """ @@ -180,6 +180,7 @@ main = -> """ updateAddressLists() + updateAddresss $("#address_list").val() $(".remove_list").fadeOut() else alert "Failed to delete template." diff --git a/res/php/upload.php b/res/php/upload.php index a1a700e..804a083 100755 --- a/res/php/upload.php +++ b/res/php/upload.php @@ -2,7 +2,7 @@ # COPYRIGHT (c) 2016 Marcel Kapfer (mmk2410) # MIT License -if (0 < $_FILES['userfile']['error']) P{ +if (0 < $_FILES['userfile']['error']) { echo "Error: " . $_FILES['userfile']['error'] . "
"; } else { move_uploaded_file($_FILES['userfile']['tmp_name'], "../../assets/file.bin");