~ubuntu-branches/ubuntu/raring/horizon/raring

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): James Page, James Page, Adam Gandelman
  • Date: 2013-03-20 11:20:17 UTC
  • mfrom: (1.1.25)
  • Revision ID: package-import@ubuntu.com-20130320112017-15h2zdnqy20lc089
Tags: 1:2013.1~rc1-0ubuntu1
[ James Page ]
* New upstream release candidate for Grizzly:
  - Recompress static JS and CSS and generate new manifest.json for
    offline compression.
* d/watch: Update uversionmangle to deal with upstream versioning
  changes, remove tarballs.openstack.org.
* d/control: Version python-compressor >= 1.2 (LP: #1130610).

[ Adam Gandelman ]
* debian/patches/ubuntu_local_settings.py: Refresh, specify memcache
  location as part of CACHES, as per upstream changes to example config.

Show diffs side-by-side

added added

removed removed

Lines of Context:
232
232
  table.find("tr.empty").remove();
233
233
};
234
234
 
 
235
/*
 
236
 * Fixes the striping of the table after filtering results.
 
237
**/
 
238
horizon.datatables.fix_row_striping = function (table) {
 
239
  table.trigger('applyWidgetId', ['zebra']);
 
240
};
 
241
 
235
242
horizon.datatables.set_table_sorting = function (parent) {
236
243
// Function to initialize the tablesorter plugin strictly on sortable columns.
237
244
$(parent).find("table.datatable").each(function () {
302
309
          table = $(table_selector);
303
310
          horizon.datatables.update_footer_count(table);
304
311
          horizon.datatables.add_no_results_row(table);
 
312
          horizon.datatables.fix_row_striping(table);
305
313
        },
306
314
        prepareQuery: function (val) {
307
315
          return new RegExp(val, "i");
325
333
      table.find('tbody tr.category-' + category).show();
326
334
      horizon.datatables.update_footer_count(table);
327
335
      horizon.datatables.add_no_results_row(table);
 
336
      horizon.datatables.fix_row_striping(table);
328
337
    });
329
338
    $(elm).find('div.table_filter button').each(function (i, button) {
330
339
      // Select the first non-empty category
339
348
 
340
349
horizon.addInitFunction(function() {
341
350
  horizon.datatables.validate_button();
342
 
  horizon.datatables.update_footer_count($.find('table.datatable'),0);
 
351
  $('table.datatable').each(function (idx, el) {
 
352
    horizon.datatables.update_footer_count($(el), 0);
 
353
  });
343
354
  // Bind the "select all" checkbox action.
344
355
  $('div.table_wrapper, #modal_wrapper').on('click', 'table thead .multi_select_column :checkbox', function(evt) {
345
356
    var $this = $(this),