govuk_admin_template 2.3.2 → 2.3.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6c0280cb7b0027b3d71bd776eef6378a66a03bd8
4
- data.tar.gz: 9b6898fdcd9cede305430718352d18c0812a6edd
3
+ metadata.gz: f2029f24a4af64d91a14ddad438794d39fc7447e
4
+ data.tar.gz: 96087d0004e48ff873693eb52046816abcd47077
5
5
  SHA512:
6
- metadata.gz: 6e5f73a6103bec7a84825167f3773f86fdc2eaa2c6c04bb4fe1d6d1910611c79a6019c007aa63910aedc3445c60fed6b4f4e2d9c90e6969b17b56c58af945ad7
7
- data.tar.gz: c8ca287b61d82728d811ce38887e85148d9d6c3a9537aa16afbb1acfc1f4378f57dc4c32ae8f62570965d456ce58588a0f0241583565c2d5b395d508be2752cd
6
+ metadata.gz: f9d3f395200b6b631dfe0d2817ddd4c5348fdcfccd659ed952f77b0e9ad55a6ab6c739278e322749a1fc1dbff9f2e12f57c217839f38e62fe3b9686111b1132a
7
+ data.tar.gz: a52f3ba67792a254f4dcbacbbb9371c3855166bc7031e0e9f8995a13607ab6bb9534f41aa2c97ec6de4b5886c020884a0af877e5df2245a7faa09bb8f18d75dd
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 2.3.3
2
+
3
+ * Fix table filtering on tables that contain multiple forms
4
+
1
5
  # 2.3.2
2
6
 
3
7
  * Make SASS compatible with libsass
@@ -6,12 +6,16 @@
6
6
  that.start = function(element) {
7
7
 
8
8
  var rows = element.find('tbody tr'),
9
- tableInput = element.find('.js-filter-table-input');
9
+ tableInput = element.find('.js-filter-table-input'),
10
+ filterForm;
10
11
 
11
12
  element.on('keyup change', '.js-filter-table-input', filterTableBasedOnInput);
12
13
 
13
14
  if (element.find('a.js-open-on-submit').length > 0) {
14
- element.on('submit', 'form', openFirstVisibleLink);
15
+ filterForm = tableInput.parents('form');
16
+ if (filterForm && filterForm.length > 0) {
17
+ filterForm.on('submit', openFirstVisibleLink);
18
+ }
15
19
  }
16
20
 
17
21
  function filterTableBasedOnInput(event) {
@@ -1,3 +1,3 @@
1
1
  module GovukAdminTemplate
2
- VERSION = "2.3.2"
2
+ VERSION = "2.3.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk_admin_template
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.2
4
+ version: 2.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - GOV.UK Dev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-22 00:00:00.000000000 Z
11
+ date: 2015-06-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails