Skip to content

Commit 108f621

Browse files
committed
Merge pull request #47 from magento-vanilla/PR
[Vanilla] Bug Fixes. P1. JS static fails
2 parents d59a6fd + 3253282 commit 108f621

File tree

25 files changed

+129
-106
lines changed

25 files changed

+129
-106
lines changed

app/code/Magento/Catalog/view/adminhtml/templates/catalog/category/checkboxes/tree.phtml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010

1111
<?php $_divId = 'tree-div_' . time() ?>
1212
<div id="<?php /* @escapeNotVerified */ echo $_divId ?>" class="tree"></div>
13-
<!--[if IE]>
1413
<script id="ie-deferred-loader" defer="defer" src=""></script>
15-
<![endif]-->
1614
<script>
1715
require([
1816
'jquery',

app/code/Magento/Catalog/view/adminhtml/templates/catalog/category/tree.phtml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,7 @@
3535
<div><?php /* @escapeNotVerified */ echo __('This operation can take a long time'); ?></div>
3636
</div>
3737
</div>
38-
<!--[if IE]>
3938
<script id="ie-deferred-loader" defer="defer" src=""></script>
40-
<![endif]-->
4139
<script>
4240
var tree;
4341
require([

app/code/Magento/Catalog/view/adminhtml/templates/catalog/category/widget/tree.phtml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@
1010

1111
<?php $_divId = 'tree' . $block->getId() ?>
1212
<div id="<?php /* @escapeNotVerified */ echo $_divId ?>" class="tree"></div>
13-
<!--[if IE]>
1413
<script id="ie-deferred-loader" defer="defer" src=""></script>
15-
<![endif]-->
14+
<![]-->
1615
<script>
1716
require(['jquery', "prototype", "extjs/ext-tree-checkbox"], function(jQuery){
1817

app/code/Magento/Catalog/view/adminhtml/templates/catalog/product/attribute/set/main.phtml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,7 @@
3838
<span class="title"><?php /* @escapeNotVerified */ echo __('Unassigned Attributes') ?></span>
3939
</div>
4040
<div id="tree-div2" class="attribute-set-tree"></div>
41-
<!--[if IE]>
4241
<script id="ie-deferred-loader" defer="defer" src=""></script>
43-
<![endif]-->
4442
<script>
4543
define("tree-panel",
4644
[

app/code/Magento/Checkout/view/frontend/web/js/sidebar.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ define([
5353
actions: {
5454
confirm: function () {
5555
self._removeItem($(event.currentTarget));
56+
},
57+
always: function (event) {
58+
event.stopImmediatePropagation();
5659
}
5760
}
5861
});

app/code/Magento/Cms/view/adminhtml/ui_component/cms_block_listing.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,14 @@
8585
<item name="provider" xsi:type="string">cms_block_listing.cms_block_listing.listing_top.bookmarks</item>
8686
<item name="namespace" xsi:type="string">current.filters</item>
8787
</item>
88+
<item name="templates" xsi:type="array">
89+
<item name="filters" xsi:type="array">
90+
<item name="select" xsi:type="array">
91+
<item name="component" xsi:type="string">Magento_Ui/js/form/element/ui-select</item>
92+
<item name="template" xsi:type="string">ui/grid/filters/elements/ui-select</item>
93+
</item>
94+
</item>
95+
</item>
8896
<item name="childDefaults" xsi:type="array">
8997
<item name="provider" xsi:type="string">cms_block_listing.cms_block_listing.listing_top.listing_filters</item>
9098
<item name="imports" xsi:type="array">

app/code/Magento/Cms/view/adminhtml/ui_component/cms_page_listing.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,14 @@
8686
<item name="provider" xsi:type="string">cms_page_listing.cms_page_listing.listing_top.bookmarks</item>
8787
<item name="namespace" xsi:type="string">current.filters</item>
8888
</item>
89+
<item name="templates" xsi:type="array">
90+
<item name="filters" xsi:type="array">
91+
<item name="select" xsi:type="array">
92+
<item name="component" xsi:type="string">Magento_Ui/js/form/element/ui-select</item>
93+
<item name="template" xsi:type="string">ui/grid/filters/elements/ui-select</item>
94+
</item>
95+
</item>
96+
</item>
8997
<item name="childDefaults" xsi:type="array">
9098
<item name="provider" xsi:type="string">cms_page_listing.cms_page_listing.listing_top.listing_filters</item>
9199
<item name="imports" xsi:type="array">

app/code/Magento/Swatches/view/adminhtml/templates/catalog/product/attribute/text.phtml

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
/** @var $block \Magento\Swatches\Block\Adminhtml\Attribute\Edit\Options\Text */
1010
?>
11-
<fieldset class="fieldset ignore-validate">
11+
<fieldset class="fieldset">
1212
<legend class="legend"><span><?php /* @escapeNotVerified */ echo __('Manage Swatch (values of your attribute)') ?></span></legend>
1313
<div id="swatch-text-options-panel">
1414
<?php //@todo move style to css file ?>
@@ -33,16 +33,23 @@
3333
<th class="col-delete">&nbsp;</th>
3434
</tr>
3535
</thead>
36-
<tbody data-role="swatch-text-options-container"></tbody>
36+
<tbody data-role="swatch-text-options-container" class="ignore-validate"></tbody>
3737
<tfoot>
38-
<th colspan="<?php /* @escapeNotVerified */ echo $storetotal; ?>" class="col-actions-add">
39-
<?php if (!$block->getReadOnly() && !$block->canManageOptionDefaultOnly()):?>
40-
<button id="add_new_swatch_text_option_button" title="<?php /* @escapeNotVerified */ echo __('Add Swatch'); ?>"
41-
type="button" class="action- scalable add">
42-
<span><?php /* @escapeNotVerified */ echo __('Add Swatch'); ?></span>
43-
</button>
44-
<?php endif; ?>
45-
</th>
38+
<tr>
39+
<th colspan="<?php /* @escapeNotVerified */ echo $storetotal; ?>">
40+
<input type="hidden" class="required-swatch-entry"/>
41+
</th>
42+
</tr>
43+
<tr>
44+
<th colspan="<?php /* @escapeNotVerified */ echo $storetotal; ?>" class="col-actions-add">
45+
<?php if (!$block->getReadOnly() && !$block->canManageOptionDefaultOnly()):?>
46+
<button id="add_new_swatch_text_option_button" title="<?php /* @escapeNotVerified */ echo __('Add Swatch'); ?>"
47+
type="button" class="action- scalable add">
48+
<span><?php /* @escapeNotVerified */ echo __('Add Swatch'); ?></span>
49+
</button>
50+
<?php endif; ?>
51+
</th>
52+
</tr>
4653
</tfoot>
4754
</table>
4855
<input type="hidden" id="swatch-text-option-count-check" value="" />

app/code/Magento/Swatches/view/adminhtml/templates/catalog/product/attribute/visual.phtml

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
/** @var $block \Magento\Swatches\Block\Adminhtml\Attribute\Edit\Options\Visual */
1010
?>
11-
<fieldset class="fieldset ignore-validate">
11+
<fieldset class="fieldset">
1212
<legend class="legend"><span><?php /* @escapeNotVerified */ echo __('Manage Swatch (values of your attribute)') ?></span></legend>
1313
<div id="swatch-visual-options-panel">
1414
<?php //@todo move style to css file ?>
@@ -29,16 +29,23 @@
2929
<th class="col-delete">&nbsp;</th>
3030
</tr>
3131
</thead>
32-
<tbody data-role="swatch-visual-options-container"></tbody>
32+
<tbody data-role="swatch-visual-options-container" class="ignore-validate"></tbody>
3333
<tfoot>
34-
<th colspan="<?php /* @escapeNotVerified */ echo $storetotal; ?>" class="col-actions-add">
35-
<?php if (!$block->getReadOnly() && !$block->canManageOptionDefaultOnly()):?>
36-
<button id="add_new_swatch_visual_option_button" title="<?php /* @escapeNotVerified */ echo __('Add Swatch'); ?>"
37-
type="button" class="action- scalable add">
38-
<span><?php /* @escapeNotVerified */ echo __('Add Swatch'); ?></span>
39-
</button>
40-
<?php endif; ?>
41-
</th>
34+
<tr>
35+
<th colspan="<?php /* @escapeNotVerified */ echo $storetotal; ?>">
36+
<input type="hidden" class="required-swatch-entry"/>
37+
</th>
38+
</tr>
39+
<tr>
40+
<th colspan="<?php /* @escapeNotVerified */ echo $storetotal; ?>" class="col-actions-add">
41+
<?php if (!$block->getReadOnly() && !$block->canManageOptionDefaultOnly()):?>
42+
<button id="add_new_swatch_visual_option_button" title="<?php /* @escapeNotVerified */ echo __('Add Swatch'); ?>"
43+
type="button" class="action- scalable add">
44+
<span><?php /* @escapeNotVerified */ echo __('Add Swatch'); ?></span>
45+
</button>
46+
<?php endif; ?>
47+
</th>
48+
</tr>
4249
</tfoot>
4350
</table>
4451
<input type="hidden" id="swatch-visual-option-count-check" value="" />

app/code/Magento/Ui/Component/Filters.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,11 @@ public function update(UiComponentInterface $component)
7373
{
7474
if ($component instanceof ColumnInterface) {
7575
$filterType = $component->getData('config/filter');
76+
77+
if (is_array($filterType)) {
78+
$filterType = $filterType['filterType'];
79+
}
80+
7681
if (!$filterType) {
7782
return;
7883
}

0 commit comments

Comments
 (0)