Skip to content

Commit d68b3ad

Browse files
author
Korshenko, Olexii(okorshenko)
committed
Merge pull request #137 from magento-webdev/PR-1
[WebDev + Vanilla] Bugfixes
2 parents 39cb0b9 + a133ad0 commit d68b3ad

File tree

16 files changed

+64
-30
lines changed

16 files changed

+64
-30
lines changed

app/code/Magento/Catalog/view/adminhtml/web/js/custom-options.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,9 +386,12 @@ define([
386386
var priceType = $('#' + this.options.fieldId + '_' + data.id + '_select_' + data.select_id + '_price_type');
387387
priceType.val(data.price_type).attr('data-store-label', data.price_type);
388388
}
389+
389390
this._bindUseDefault(this.options.fieldId + '_' + data.id + '_select_' + data.select_id, data);
390391
this.refreshSortableElements();
391392
this.options.selectionItemCount[data.id] = parseInt(this.options.selectionItemCount[data.id], 10) + 1;
393+
394+
$('#' + this.options.fieldId + '_' + data.id + '_select_' + data.select_id + '_title').focus();
392395
},
393396

394397
/**

app/code/Magento/Catalog/view/adminhtml/web/js/options.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ define([
4141
if (!data.intype) {
4242
data.intype = optionDefaultInputType;
4343
}
44+
45+
if (!this.totalItems) {
46+
data.checked = 'checked';
47+
}
4448
element = this.template({
4549
data: data
4650
});

app/code/Magento/ProductVideo/view/frontend/web/js/fotorama-add-video-events.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ define([
506506
var self = this;
507507

508508
$image.find('.magnify-lens').remove();
509-
$image.on('click', function () {
509+
$image.on('click tap', function () {
510510
if ($(this).hasClass('video-unplayed') && $(this).find('iframe').length === 0) {
511511
$('.fotorama__arr--next').hide();
512512
$('.fotorama__arr--prev').hide();

app/code/Magento/Swatches/view/adminhtml/web/js/text.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ define([
4040
data.intype = swatchOptionTextDefaultInputType;
4141
}
4242

43+
if (!this.totalItems) {
44+
data.checked = 'checked';
45+
}
4346
element = this.template({
4447
data: data
4548
});
@@ -110,7 +113,6 @@ define([
110113

111114
if (from === arrayLength) {
112115
this.updateItemsCountField();
113-
this.bindRemoveButtons();
114116
this.rendered = 1;
115117
jQuery('body').trigger('processStop');
116118

app/code/Magento/Swatches/view/adminhtml/web/js/visual.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ define([
4242
if (!data.intype) {
4343
data.intype = swatchOptionVisualDefaultInputType;
4444
}
45+
46+
if (!this.totalItems) {
47+
data.checked = 'checked';
48+
}
4549
element = this.template({
4650
data: data
4751
});

app/design/adminhtml/Magento/backend/Magento_Catalog/web/css/source/_module.less

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,18 @@
33
// * See COPYING.txt for license details.
44
// */
55

6+
//
7+
// Catalog product grid
8+
// ---------------------------------------------
9+
10+
.catalog-product-index {
11+
.admin__data-grid-wrap {
12+
.data-row {
13+
cursor: pointer;
14+
}
15+
}
16+
}
17+
618
.product-composite-configure-inner {
719
.admin__control-text {
820
&.qty {

app/design/adminhtml/Magento/backend/web/css/styles-old.less

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -795,6 +795,7 @@
795795
height: 33px;
796796
&:focus {
797797
border-color: #007bdb;
798+
box-shadow: none;
798799
outline: 0;
799800
}
800801
}
@@ -874,6 +875,7 @@
874875
transition: all 0.1s ease-in;
875876
&:focus {
876877
border-color: #007bdb;
878+
box-shadow: none;
877879
outline: 0;
878880
}
879881
&[disabled] {

app/design/frontend/Magento/blank/Magento_Catalog/web/css/source/_module.less

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -604,6 +604,8 @@
604604

605605
.table-wrapper.comparison {
606606
clear: both;
607+
max-width: 100%;
608+
overflow-x: auto;
607609
}
608610

609611
.table-comparison {

app/design/frontend/Magento/blank/etc/view.xml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@
221221
<var name="width"></var> <!-- Width of magnifier block -->
222222
<var name="height"></var> <!-- Height of magnifier block -->
223223
<var name="eventType">hover</var> <!-- Action that atcivates zoom (hover/click) -->
224-
<var name="enabled">true</var> <!-- Turn on/off magnifier (true/false) -->
224+
<var name="enabled">false</var> <!-- Turn on/off magnifier (true/false) -->
225225
</var>
226226

227227
<var name="breakpoints">
@@ -233,9 +233,6 @@
233233
<var name="options">
234234
<var name="navigation">dots</var>
235235
</var>
236-
<var name="magnifierOpts">
237-
<var name="enabled">false</var>
238-
</var>
239236
</var>
240237
</var>
241238
</var>

app/design/frontend/Magento/blank/web/css/source/components/_modals_extend.less

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
@modal-action-close__font-size: 32px;
2727
@modal-action-close__hover__color: darken(@primary__color, 10%);
2828

29+
@modal-slide-action-close__padding: @modal-slide-header__padding-vertical - 1rem @modal-popup__padding - 1rem;
30+
2931
//
3032
// Common
3133
// _____________________________________________
@@ -75,7 +77,7 @@
7577

7678
.modal-slide {
7779
.action-close {
78-
padding: @modal-slide-header__padding-vertical @modal-slide__padding;
80+
padding: @modal-slide-action-close__padding;
7981
}
8082
.page-main-actions {
8183
margin-top: @modal-slide-header__padding-vertical;

0 commit comments

Comments
 (0)