File tree Expand file tree Collapse file tree 4 files changed +16
-7
lines changed
Shipping/view/adminhtml/templates/order/packaging
design/adminhtml/Magento/backend/web/css Expand file tree Collapse file tree 4 files changed +16
-7
lines changed Original file line number Diff line number Diff line change 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 () ?> "/>
Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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>
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments