Removed obsolete CoffeeScript code
This commit is contained in:
parent
56e607c04a
commit
d06ab8ab1a
1 changed files with 0 additions and 14 deletions
|
@ -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"
|
||||
|
|
Reference in a new issue