fix js, fix scoupe

prod
Dmitriy Shesterkin 9 years ago
parent 1a2d3b7164
commit 3ceced5854
  1. 6
      static/js/orders.js

@ -1,3 +1,4 @@
(function() {
$(document).ready(function () {
$('.delete_license').click(function (e) {
@ -8,8 +9,8 @@ $(document).ready(function() {
$('#dialogs').dialog({
buttons: {
"Да": function () {
$.post('/my/delete_license/' + accountID + '/', function(data){
$('.account_' + data['id']).remove()
$.post('/my/delete_license/' + accountID + '/', function () {
$("[data-id='" + accountID + "']")[0].remove()
});
$(this).dialog("close");
},
@ -441,3 +442,4 @@ $(document).ready(function() {
}
});
})();

Loading…
Cancel
Save