Skip to content

Commit 5e8d0fc

Browse files
author
Olexii Korshenko
committed
Merge remote-tracking branch 'ui/develop' into develop
2 parents 630676c + 5bd9fe1 commit 5e8d0fc

File tree

4 files changed

+16
-7
lines changed

4 files changed

+16
-7
lines changed

app/code/Magento/Captcha/view/frontend/templates/default.phtml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
data-captcha="<?php echo $this->getFormId()?>"
1616
id="captcha-container-<?php echo $this->getFormId()?>"
1717
data-mage-init='{"captcha":{"url": "<?php echo $this->getRefreshUrl()?>",
18+
"imageLoader": "<?php echo $this->getViewFileUrl('images/loader-2.gif') ?>",
1819
"type": "<?php echo $this->getFormId() ?>"}}'>
1920
<div class="control captcha-image">
2021
<img alt="<?php echo __('Please type the letters below')?>" class="captcha-img" height="<?php echo $this->getImgHeight() ?>" src="<?php echo $captcha->getImgSrc() ?>"/>

app/code/Magento/Captcha/view/frontend/web/captcha.js

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ define([
1212
options: {
1313
refreshClass: 'refreshing',
1414
reloadSelector: '.captcha-reload',
15-
imageSelector: '.captcha-img'
15+
imageSelector: '.captcha-img',
16+
imageLoader: ''
1617
},
1718

1819
/**
@@ -28,8 +29,13 @@ define([
2829
* @param e - Event
2930
*/
3031
refresh: function(e) {
31-
var reloadImage = $(e.currentTarget);
32-
reloadImage.addClass(this.options.refreshClass);
32+
var imageLoader = this.options.imageLoader;
33+
34+
if (imageLoader) {
35+
this.element.find(this.options.imageSelector).attr('src', imageLoader);
36+
}
37+
this.element.addClass(this.options.refreshClass);
38+
3339
$.ajax({
3440
url: this.options.url,
3541
type: 'post',
@@ -45,7 +51,7 @@ define([
4551
}
4652
},
4753
complete: function() {
48-
reloadImage.removeClass(this.options.refreshClass);
54+
this.element.removeClass(this.options.refreshClass);
4955
}
5056
});
5157
}

app/code/Magento/Shipping/view/adminhtml/templates/order/packaging/popup.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ require([
105105
$customsValueValidation = '';
106106
}
107107
?>
108-
<td <?php echo $customsValueDisplay ?>>
108+
<td class="col-custom" <?php echo $customsValueDisplay ?>>
109109
<input type="text" class="customs-value input-text <?php echo $customsValueValidation ?>" name="package_customs_value" />
110110
<span class="customs-value-currency">[<?php echo $this->getCustomValueCurrencyCode(); ?>]</span>
111111
</td>

app/design/adminhtml/Magento/backend/web/css/pages.less

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1745,7 +1745,8 @@ table.items-to-invoice tbody tr:hover td {
17451745
.packaging-window .col-width,
17461746
.packaging-window .col-height,
17471747
.packaging-window .col-length,
1748-
.packaging-window .data-table .col-total-weight input[type="text"] {
1748+
.packaging-window .data-table .col-total-weight input[type="text"],
1749+
.packaging-window .data-table .col-custom input[type="text"] {
17491750
width: 60px;
17501751
}
17511752

@@ -1759,7 +1760,8 @@ table.items-to-invoice tbody tr:hover td {
17591760
}
17601761

17611762
.packaging-window .data-table .col-actions,
1762-
.packaging-window .col-total-weight {
1763+
.packaging-window .col-total-weight,
1764+
.packaging-window .data-table .col-custom {
17631765
white-space: nowrap;
17641766
}
17651767

0 commit comments

Comments
 (0)