Removed obsolete CoffeeScript code

This commit is contained in:
Marcel Kapfer 2017-06-16 00:05:05 +02:00
parent 56e607c04a
commit d06ab8ab1a

View file

@ -105,20 +105,6 @@ main = ->
$("#edit-addresses").val(text)
$(".edit_address").fadeIn()
$("#save-addresses").click ->
data =
list: $("#edit-address-list").val()
addresses: $("#edit-addresses").val().split '\n'
if data.addresses[data.addresses.length - 1] is ""
data.addresses.pop()
$.get "./res/php/savelist.php", {"data": data}, (data) ->
if data == "0"
alert "List sucessfully changed!"
if data.list is $("#address_list")
updateAddresss data.list
else
alert "Error while saving the edit."
$("#create-list").click ->
filename = $("#create-list-name").val()
if filename.substring((filename.length - 4)) isnt ".txt"