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

Loading…
Cancel
Save