Network
This commit is contained in:
+4
-2
@@ -1,8 +1,10 @@
|
||||
$(document).ready(function(){
|
||||
$('.nbr_input').submit(function(e) { return false; });
|
||||
$('.update').click(function(e) {
|
||||
$('.update, .delete').click(function(e) {
|
||||
console.log("blabla");
|
||||
var li = $(this).parent("li");
|
||||
$.post('/xml/' + li.data("file"), {'action': 'update', 'nbr': li.data("nbr"), 'new_nbr': li.children(".nbr_input").val()}, function(d) {
|
||||
console.log($(this).attr('class'));
|
||||
$.post('/xml/' + li.data("file"), {'action': $(this).attr('class'), 'nbr': li.data("nbr"), 'new_nbr': li.children(".nbr_input").val(), 'date': li.data("date")}, function(d) {
|
||||
if(d === 'ok') {
|
||||
location.reload();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user