dont show clients table when empty

remotes/origin/yandex
Bachurin Sergey 11 years ago
parent 0a06547d53
commit b90f1d6be3
  1. 1
      project/static/js/dialogs.js
  2. 2
      project/templates/customer/clients/list.html

@ -46,6 +46,7 @@ $(document).ready(function() {
if (data.action == 'client-add'){ if (data.action == 'client-add'){
$(data.row_html).insertAfter('#clients_header_row'); $(data.row_html).insertAfter('#clients_header_row');
window.clients_edit_del_update(); window.clients_edit_del_update();
$('table#clients').show();
} }
if (data.action == 'client-edit'){ if (data.action == 'client-edit'){
$("tr#client_" + data.id).replaceWith(data.row_html); $("tr#client_" + data.id).replaceWith(data.row_html);

@ -12,7 +12,7 @@
</div> </div>
<div class="clear"></div> <div class="clear"></div>
<table id="clients" class="list"> <table id="clients" class="list{% if not page.object_list %} hidden{% endif %}">
<tr id='clients_header_row'> <tr id='clients_header_row'>
<th style="width: 46%">Контрагент</th> <th style="width: 46%">Контрагент</th>
<th style="width: 18%">Контактное лицо</th> <th style="width: 18%">Контактное лицо</th>

Loading…
Cancel
Save