grid_table 1.6.6 → 1.6.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e63c89c4cb54dad4fe6055f19020a95a5618e119
4
- data.tar.gz: 3f427ac89c80ff451cdad688be18fc6e691501df
3
+ metadata.gz: 92eb43eb3771a9fd62742018ff4ef32e8a8ea539
4
+ data.tar.gz: 75ac2be006be46838088cb384837a28985422a64
5
5
  SHA512:
6
- metadata.gz: bdddca8acec31364a058339e17bc45582403d4b5dfa4a3044d8fbe533968f5ce33a8720a45fc0af0c96ed3a8268690d5ac6abf8952451f109bcab49116f7be93
7
- data.tar.gz: 34ef4ba3f519810b3f51d9510278ca18b6b630e627a337b4de9b0bb5f9fdbcf4692127ece796140737248962c4fdd89177064f6cd92407b91ec4ff6971ba31e6
6
+ metadata.gz: 7697dfab65dfe23758975bea60561983d169201d69f330474be4a1313ee6b7131208a6c80a93fd169e005615a8fc040cba5364b31231e513542840dadc4c2b92
7
+ data.tar.gz: 938fc047588f66506374e8487ecc146fd5bae6d3d628709cc99c083000ac4dca839f9688d6bfe976a184d7c85520c8fa7570c4a6db8f05f16a33437c9778d5a1
data/.gitignore CHANGED
@@ -3,6 +3,7 @@
3
3
  .bundle
4
4
  .config
5
5
  .yardoc
6
+ .ruby-version
6
7
  Gemfile.lock
7
8
  InstalledFiles
8
9
  _yardoc
@@ -1,3 +1,3 @@
1
1
  module GridTable
2
- VERSION = '1.6.6'.freeze
2
+ VERSION = '1.6.7'.freeze
3
3
  end
@@ -308,19 +308,21 @@ GridTable = (function() {
308
308
  success: (function(_this) {
309
309
  return function(data, textStatus, jqXHR) {
310
310
  var row, _i, _len, _ref;
311
- var noResultsSelector = '.no-results,[data-grid-table-no-results]';
312
- _this.gridTableDOM.find('tbody, .tbody').children().not(noResultsSelector).remove();
313
- _this.gridTableDOM.find(noResultsSelector).hide();
311
+ var noResultsSelector = '.no-results, [data-grid-table-no-results]';
312
+ var $rows = _this.gridTableDOM.find('tbody, .tbody, [data-grid-table-rows]');
313
+ var $noResults = _this.gridTableDOM.find(noResultsSelector);
314
+ $rows.children().not(noResultsSelector).remove();
315
+ $noResults.hide();
314
316
  if (data.totals) {
315
317
  _this.gridTableDOM.find('thead tr.totals, .thead tr.totals, .thead .tr.totals').html(data.totals);
316
318
  }
317
319
  if (data.rows.length === 0) {
318
- _this.gridTableDOM.find(noResultsSelector).show();
320
+ $noResults.show();
319
321
  } else {
320
322
  _ref = data.rows;
321
323
  for (_i = 0, _len = _ref.length; _i < _len; _i++) {
322
324
  row = _ref[_i];
323
- _this.gridTableDOM.find('tbody, .tbody').append(row);
325
+ $rows.append(row);
324
326
  }
325
327
  }
326
328
  _this.updateSortDisplay();
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grid_table
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.6
4
+ version: 1.6.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon Principe