From b90f1d6be343710c345117fb788ce1a898c82f5d Mon Sep 17 00:00:00 2001 From: Bachurin Sergey Date: Wed, 3 Jun 2015 23:58:06 +0300 Subject: [PATCH] dont show clients table when empty --- project/static/js/dialogs.js | 1 + project/templates/customer/clients/list.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/project/static/js/dialogs.js b/project/static/js/dialogs.js index 6e30507..ba44b05 100644 --- a/project/static/js/dialogs.js +++ b/project/static/js/dialogs.js @@ -46,6 +46,7 @@ $(document).ready(function() { if (data.action == 'client-add'){ $(data.row_html).insertAfter('#clients_header_row'); window.clients_edit_del_update(); + $('table#clients').show(); } if (data.action == 'client-edit'){ $("tr#client_" + data.id).replaceWith(data.row_html); diff --git a/project/templates/customer/clients/list.html b/project/templates/customer/clients/list.html index 730b259..a9d642a 100644 --- a/project/templates/customer/clients/list.html +++ b/project/templates/customer/clients/list.html @@ -12,7 +12,7 @@
- +
Контрагент Контактное лицо