parent
4060f8f992
commit
1af783a10e
5 changed files with 61 additions and 6 deletions
@ -0,0 +1,23 @@ |
|||||||
|
$(document).ready(function() { |
||||||
|
|
||||||
|
$('.delete_license').click(function(e){ |
||||||
|
e.preventDefault(); |
||||||
|
var accountID = $(this).data('id'); |
||||||
|
|
||||||
|
$('#dialogs').html('Удалить счет на оплату?'); |
||||||
|
$('#dialogs').dialog({ |
||||||
|
buttons: { |
||||||
|
"Да": function(){ |
||||||
|
$.post('/my/delete_license/' + accountID + '/', function(data){ |
||||||
|
$('.account_' + data['id']).remove() |
||||||
|
}); |
||||||
|
$(this).dialog("close"); |
||||||
|
}, |
||||||
|
"Нет": function(){ |
||||||
|
$(this).dialog("close"); |
||||||
|
} |
||||||
|
} |
||||||
|
}) |
||||||
|
}) |
||||||
|
}); |
||||||
|
|
||||||
Loading…
Reference in new issue