~gandelman-a/ubuntu/precise/horizon/UCA_2012.2.1

« back to all changes in this revision

Viewing changes to horizon/static/horizon/js/horizon.tables.js

  • Committer: Adam Gandelman
  • Date: 2013-01-08 00:08:42 UTC
  • mfrom: (1.1.22)
  • Revision ID: adamg@canonical.com-20130108000842-tr1lkown7huolbia
Tags: 2012.2.1-0ubuntu1~cloud0
Releasing 2012.2.1-0ubuntu1~cloud0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
180
180
  else {
181
181
    $footer = $el.find('tr:last span:first');
182
182
  }
183
 
  row_count = $el.find('tbody tr:visible').length + modifier;
 
183
  row_count = $el.find('tbody tr:visible').length + modifier - $el.find('.empty').length;
184
184
  footer_text_template = ngettext("Displaying %s item", "Displaying %s items", row_count);
185
185
  footer_text = interpolate(footer_text_template, [row_count]);
186
186
  $footer.text(footer_text);
279
279
 
280
280
horizon.addInitFunction(function() {
281
281
  horizon.datatables.validate_button();
282
 
 
 
282
  horizon.datatables.update_footer_count($.find('table'),0);
283
283
  // Bind the "select all" checkbox action.
284
284
  $('div.table_wrapper, #modal_wrapper').on('click', 'table thead .multi_select_column :checkbox', function(evt) {
285
285
    var $this = $(this),