foo_table-rails 2.0.1.3 → 2.0.1.4

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: a4bf5b57cbe5a913d4d57f55c3c70c428a0e6da4
4
- data.tar.gz: bf23b37fa124411f3bdbc6551550ddf6d875175a
3
+ metadata.gz: 547b3deac353d2773a9873d9b058f2f0ae205aed
4
+ data.tar.gz: a33dd33575f12bf438ccf770671df620bdc4ac15
5
5
  SHA512:
6
- metadata.gz: 6531b151cfe80bf1a0af7e8ecaa5b20e38ed5f0fa35b8369af0ed8ef640364dbe3a6e2093febdd88cc91399486df568548417e09df9e1355bbfccebb8296f784
7
- data.tar.gz: 8b3f72ccc3488178c14a3b4457681bd29f971b4c7a811caf7b9185dbcdd39297b015c5d4a0ad6b906e6ae5c2f3b5ee4052e4b20fb7584e0ce6a5b1b79850f261
6
+ metadata.gz: 8d3b57a4f8dd1f816555a3b69eae95efa86e4424f8e60d84b5c6058ecee1e6aee657f9067bcb005f22900c0d9f656775eaeab0fdac60c88825b5e57dccd9b048
7
+ data.tar.gz: eb3ceae04e9c80aa0f98bd745626545b065e46cc4a6a54847b25f1301308f65ee5b92fd752975a52537d120166419d4b313b7168878702a7950249bf506054a0
@@ -1,5 +1,5 @@
1
1
  module FooTable
2
2
  module Rails
3
- VERSION = '2.0.1.3'
3
+ VERSION = '2.0.1.4'
4
4
  end
5
5
  end
@@ -1,15 +1,15 @@
1
1
  /*!
2
2
  * FooTable - Awesome Responsive Tables
3
- * Version : 2.0.1.3
3
+ * Version : 2.0.1.4
4
4
  * http://fooplugins.com/plugins/footable-jquery/
5
5
  *
6
6
  * Requires jQuery - http://jquery.com/
7
7
  *
8
- * Copyright 2013 Steven Usher & Brad Vincent
8
+ * Copyright 2014 Steven Usher & Brad Vincent
9
9
  * Released under the MIT license
10
10
  * You are free to use FooTable in commercial projects as long as this copyright header is left intact.
11
11
  *
12
- * Date: 21 Sep 2013
12
+ * Date: 16 Feb 2014
13
13
  */
14
14
  (function ($, w, undefined) {
15
15
  w.footable = {
@@ -635,7 +635,7 @@
635
635
  ft.createOrUpdateDetailRow(this);
636
636
  });
637
637
 
638
- $table.find('> tbody > tr.' + cls.detailShow + '.footable-visible').each(function () {
638
+ $table.find('> tbody > tr.' + cls.detailShow + ':visible').each(function () {
639
639
  var $next = $(this).next();
640
640
  if ($next.hasClass(cls.detail)) {
641
641
  if (!hasBreakpointFired) $next.hide();
@@ -27,7 +27,7 @@
27
27
  this.limitPreviousText = data.limitPreviousText || ft.options.limitPreviousText;
28
28
  this.limitNextText = data.limitNextText || ft.options.limitNextText;
29
29
  this.limit = this.limitNavigation > 0;
30
- this.currentPage = 0;
30
+ this.currentPage = data.currentPage || 0;
31
31
  this.pages = [];
32
32
  this.control = false;
33
33
  }
@@ -219,6 +219,7 @@
219
219
 
220
220
  p.fillPage = function (ft, tbody, pageNumber) {
221
221
  ft.pageInfo.currentPage = pageNumber;
222
+ $(ft.table).data('currentPage', pageNumber);
222
223
  tbody.find('> tr').hide();
223
224
  $(ft.pageInfo.pages[pageNumber]).each(function () {
224
225
  p.showRow(this, ft);
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foo_table-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1.3
4
+ version: 2.0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dale Stevens