File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
app/code/Magento/CurrencySymbol/view/adminhtml Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 22
22
class="required-entry admin__control-text <?= $ data ['inherited ' ] ? 'disabled ' : '' ?> "
23
23
type="text"
24
24
value="<?= $ block ->escapeHtmlAttr ($ data ['displaySymbol ' ]) ?> "
25
- name="custom_currency_symbol[<?= $ block ->escapeHtmlAttr ($ code ) ?> ]">
25
+ name="custom_currency_symbol[<?= $ block ->escapeHtmlAttr ($ code ) ?> ]"
26
+ <?= $ data ['inherited ' ] ? 'disabled ' : '' ?> >
26
27
<div class="admin__field admin__field-option">
27
28
<input id="custom_currency_symbol_inherit<?= $ block ->escapeHtmlAttr ($ code ) ?> "
28
29
class="admin__control-checkbox" type="checkbox"
Original file line number Diff line number Diff line change @@ -25,12 +25,10 @@ define([
25
25
input = $ ( '#custom_currency_symbol' + code ) ;
26
26
27
27
if ( checkbox . is ( ':checked' ) ) {
28
- input . addClass ( 'disabled' ) ;
29
28
input . val ( value ) ;
30
- input . prop ( 'readonly ' , true ) ;
29
+ input . prop ( 'disabled ' , true ) ;
31
30
} else {
32
- input . removeClass ( 'disabled' ) ;
33
- input . prop ( 'readonly' , false ) ;
31
+ input . prop ( 'disabled' , false ) ;
34
32
}
35
33
}
36
34
You can’t perform that action at this time.
0 commit comments