workarea-search_autocomplete 1.0.1 → 1.0.2

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
  SHA256:
3
- metadata.gz: e3d9b093a06ee3b80b22957730141c5a4f18e6cbeae7e0fd545bb21dc09f954c
4
- data.tar.gz: f2241f6de7bf2aa8da3602b7122b4094961063840056a3270fc7d253df3ccc0f
3
+ metadata.gz: 36b1c94350df146fb08bcd1ff2f999e01d90c5061102f93d2a37f960ca3cfeed
4
+ data.tar.gz: 15342e7cf3b33b5c6308a1bfc966387bcbee18de067c1c4dec70d6ff6891e462
5
5
  SHA512:
6
- metadata.gz: 2e57c54b3157396fb85e8227205f839fee97d22b525e4c404c5baa2f6899b08b7de034ad68e68ae0c5133e95f97db4808fb6eda4dade200895021d0679383874
7
- data.tar.gz: dc26615b26f5ca5e2a6da474792da28e66a9e8380edc6bd7c4a22159fcff5566e7185313a7a5bdf57c6a33edb0d2e9871367faa5d397a6e500a4bd90a3610c79
6
+ metadata.gz: 53c88054ad9ad77f07037ed1e396cc71ef0bd5122ad0f2b05c4450d44ac91363a5f5ddee6371bcb5f7fc9acdd18aaf02e14a962659543fa6f7ee09aa90443976
7
+ data.tar.gz: 78223237493e544dbb479cc2678295536421d5bb08ab2805ca7227567dcc6ffca189b732175f6f1065b6bd0643157b054ebaee7b4f5e48908ef3c56e66b53f43
@@ -1,3 +1,17 @@
1
+ Workarea Search Autocomplete 1.0.2 (2020-01-21)
2
+ --------------------------------------------------------------------------------
3
+
4
+ * Re-initialize modules on template response
5
+
6
+ When the autocomplete view is rendered we need to re-initialize the
7
+ JavaScript modules to ensure that their functionality is provided to the
8
+ template.
9
+
10
+ SEARCHAUTO-4
11
+ Curt Howard
12
+
13
+
14
+
1
15
  Workarea Search Autocomplete 1.0.1 (2019-12-17)
2
16
  --------------------------------------------------------------------------------
3
17
 
data/Gemfile CHANGED
@@ -14,4 +14,4 @@ gemspec
14
14
  # To use a debugger
15
15
  # gem 'byebug', group: [:development, :test]
16
16
 
17
- gem 'workarea', github: 'workarea-commerce/workarea'
17
+ gem 'workarea', github: 'workarea-commerce/workarea', branch: 'v3.5-stable'
data/Rakefile CHANGED
@@ -37,10 +37,9 @@ task :release do
37
37
  Rake::Task['workarea:changelog'].execute
38
38
  system 'git add CHANGELOG.md'
39
39
  system 'git commit -m "Update CHANGELOG"'
40
- system 'git push origin HEAD'
41
40
 
42
41
  system "git tag -a v#{Workarea::SearchAutocomplete::VERSION} -m 'Tagging #{Workarea::SearchAutocomplete::VERSION}'"
43
- system 'git push --tags'
42
+ system 'git push origin HEAD --follow-tags'
44
43
 
45
44
  system "gem build workarea-search_autocomplete.gemspec"
46
45
  system "gem push workarea-search_autocomplete-#{Workarea::SearchAutocomplete::VERSION}.gem"
@@ -15,11 +15,15 @@ WORKAREA.registerModule('searchAutocomplete', (function () {
15
15
  },
16
16
 
17
17
  render = function (response) {
18
+ var $response = $(response);
19
+
20
+ WORKAREA.initModules($response);
21
+
18
22
  $('#search_autocomplete')
19
23
  .removeClass('visually-hidden')
20
24
  .addClass('search-autocomplete--visible')
21
25
  .empty()
22
- .append(response)
26
+ .append($response)
23
27
  .closest('.page-header__search-value')
24
28
  .addClass('page-header__search-value--autocomplete');
25
29
  },
@@ -1,5 +1,5 @@
1
1
  module Workarea
2
2
  module SearchAutocomplete
3
- VERSION = '1.0.1'
3
+ VERSION = '1.0.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: workarea-search_autocomplete
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Crouse
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-18 00:00:00.000000000 Z
11
+ date: 2020-01-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: workarea
@@ -141,7 +141,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
141
141
  - !ruby/object:Gem::Version
142
142
  version: '0'
143
143
  requirements: []
144
- rubygems_version: 3.0.6
144
+ rubygems_version: 3.1.2
145
145
  signing_key:
146
146
  specification_version: 4
147
147
  summary: Adds search autocomplete to storefront