workarea-admin 3.5.20 → 3.5.21
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d5ffbe0a96b1231e86d0f29728216cc596c72c111e4c1ea7a7252293feb21af
|
4
|
+
data.tar.gz: 28f3c44b5d1d1073f8d1a3fb64b366a46a92465e28d60b2f7753387b1d9e7a44
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb7be08e9798f6cee33c4c86c47993edd95e7487a6d4d9b9d4832857bb5b1bd91f0869af26ab9ed8990a11c3768f4a55251037425dbaa93c8d9d69aa99728f6b
|
7
|
+
data.tar.gz: ecec8dfca7f38c27d273c245535a2fdb98af8e611e4cb054779a05c8306652189bb2c156181db6c2adf6e7f467854c894f8340f9a660bad29bfe2b045cbf7a51
|
@@ -23,8 +23,9 @@ WORKAREA.registerModule('newNavigationTaxons', (function () {
|
|
23
23
|
createRemoteSelect = function (event) {
|
24
24
|
var $typeSelect = $(event.currentTarget),
|
25
25
|
$idSelect = $('[name=navigable_id]', event.delegateTarget),
|
26
|
+
$section = $typeSelect.closest('[data-new-navigation-taxon]'),
|
26
27
|
settings = getConfig($typeSelect),
|
27
|
-
selected = $
|
28
|
+
selected = $section.data('newNavigationTaxon');
|
28
29
|
|
29
30
|
if ($idSelect.is('.select2-hidden-accessible') && _.isUndefined(selected)) {
|
30
31
|
destroyRemoteSelect($idSelect);
|
data/config/locales/en.yml
CHANGED
@@ -3506,10 +3506,10 @@ en:
|
|
3506
3506
|
description: Define what filters should be shown on search results and categories.
|
3507
3507
|
title: Filters
|
3508
3508
|
synonyms:
|
3509
|
-
description: Define groups of search terms that
|
3509
|
+
description: Define groups of search terms that mean the same thing. Keep in mind this is not the same as "return the same results". For that task, use search customizations.
|
3510
3510
|
phrase_example: united states,u s a,united states of america => usa
|
3511
3511
|
phrase_example_description: 'You can create synonym functionality out of a phrase like so:'
|
3512
|
-
simple_example: "
|
3512
|
+
simple_example: "denim, jeans, dungarees \nshirt, pullover, blouse"
|
3513
3513
|
simple_example_description: 'Enter one synonym group per line, for example:'
|
3514
3514
|
title: Synonyms
|
3515
3515
|
title: Search Settings
|
@@ -0,0 +1,10 @@
|
|
1
|
+
.new-navigation-link__section{ data: { new_navigation_taxon: 'bar' } }
|
2
|
+
%fieldset
|
3
|
+
%legend
|
4
|
+
%span.heading.heading--2 Existing
|
5
|
+
.property
|
6
|
+
= label_tag 'navigable_type', 'Type', class: 'property__name'
|
7
|
+
= select_tag 'navigable_type', options_for_select([['Foo', 'foo', { data: { new_navigation_taxon_endpoint: 'http://foo.com' } }], ['Bar', 'bar', { data: { new_navigation_taxon_endpoint: 'http://bar.com' } }]])
|
8
|
+
.property
|
9
|
+
= label_tag 'navigable_id', 'Name', class: 'property__name'
|
10
|
+
= select_tag 'navigable_id', options_for_select([['Bar', 'bar']], 'bar'), include_blank: true
|
@@ -6,7 +6,6 @@
|
|
6
6
|
it('initializes select2 on navigable id select', function () {
|
7
7
|
var markup = 'new_navigation_taxon.html',
|
8
8
|
$fixture = $(fixture.load(markup, true)),
|
9
|
-
|
10
9
|
$select = $('[name=navigable_id]', $fixture);
|
11
10
|
|
12
11
|
expect($select.is('.select2-hidden-accessible')).to.not.be.ok;
|
@@ -14,6 +13,18 @@
|
|
14
13
|
WORKAREA.newNavigationTaxons.init($fixture);
|
15
14
|
|
16
15
|
expect($select.is('.select2-hidden-accessible')).to.be.ok;
|
16
|
+
expect($select.val()).to.equal('');
|
17
|
+
});
|
18
|
+
|
19
|
+
it('saves with the existing data', function () {
|
20
|
+
var markup = 'existing_navigation_taxon.html',
|
21
|
+
$fixture = $(fixture.load(markup, true)),
|
22
|
+
$select = $('[name=navigable_id]', $fixture);
|
23
|
+
|
24
|
+
WORKAREA.newNavigationTaxons.init($fixture);
|
25
|
+
|
26
|
+
expect($select.is('.select2-hidden-accessible')).to.be.ok;
|
27
|
+
expect($select.val()).to.equal('bar');
|
17
28
|
});
|
18
29
|
});
|
19
30
|
});
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: workarea-admin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.5.
|
4
|
+
version: 3.5.21
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Crouse
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-10-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: workarea-core
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 3.5.
|
19
|
+
version: 3.5.21
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 3.5.
|
26
|
+
version: 3.5.21
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: workarea-storefront
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 3.5.
|
33
|
+
version: 3.5.21
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 3.5.
|
40
|
+
version: 3.5.21
|
41
41
|
description: Provides site administration functionality for the Workarea Commerce
|
42
42
|
Platform.
|
43
43
|
email:
|
@@ -1390,6 +1390,7 @@ files:
|
|
1390
1390
|
- test/javascripts/fixtures/datepicker_fields.html.haml
|
1391
1391
|
- test/javascripts/fixtures/datetimepicker_fields.html.haml
|
1392
1392
|
- test/javascripts/fixtures/direct_upload.html.haml
|
1393
|
+
- test/javascripts/fixtures/existing_navigation_taxon.html.haml
|
1393
1394
|
- test/javascripts/fixtures/help_lookup_button.haml
|
1394
1395
|
- test/javascripts/fixtures/menu_editor_menu_list_sortable.html.haml
|
1395
1396
|
- test/javascripts/fixtures/new_navigation_taxon.html.haml
|