Commit 9157d19ae535a3a9835e24040813a39da35e05c0
1 parent
313cd9b5
Exists in
master
and in
5 other branches
alerts included [Issue:#122]
Showing
1 changed file
with
2 additions
and
0 deletions
Show diff stats
links/templates/links/update_link.html
@@ -62,11 +62,13 @@ | @@ -62,11 +62,13 @@ | ||
62 | $('#linksModalEdit').modal('hide'); | 62 | $('#linksModalEdit').modal('hide'); |
63 | $('#link_edit_{{ link.slug }}').replaceWith(data); | 63 | $('#link_edit_{{ link.slug }}').replaceWith(data); |
64 | $('#link_{{ link.slug }}').replaceWith(data); | 64 | $('#link_{{ link.slug }}').replaceWith(data); |
65 | + alertify.alert("Sucessfully Updated!") | ||
65 | }, | 66 | }, |
66 | error: function(data){ | 67 | error: function(data){ |
67 | $('.erro-update').html(data.responseText); | 68 | $('.erro-update').html(data.responseText); |
68 | $('.modal-backdrop').remove(); | 69 | $('.modal-backdrop').remove(); |
69 | $('#linksModalEdit').modal(); | 70 | $('#linksModalEdit').modal(); |
71 | + alertify.alert('Invalid link, insert a valid one!'); | ||
70 | } | 72 | } |
71 | }); | 73 | }); |
72 | event.preventDefault(); | 74 | event.preventDefault(); |