Skip to content

Commit 630d4e2

Browse files
oiegorovSergey Nosov
authored andcommitted
MAGETWO-47704: HTML tags are shown in messages
1 parent 50c720c commit 630d4e2

File tree

1 file changed

+4
-3
lines changed
  • app/code/Magento/EncryptionKey/Block/Adminhtml/Crypt/Key

1 file changed

+4
-3
lines changed

app/code/Magento/EncryptionKey/Block/Adminhtml/Crypt/Key/Form.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,10 @@ protected function _prepareForm()
4040
'name' => 'generate_random',
4141
'label' => __('Auto-generate a Key'),
4242
'options' => [0 => __('No'), 1 => __('Yes')],
43-
'onclick' => "var cryptKey = jQuery('#crypt_key'); cryptKey.disabled = this.value == 1; " .
44-
"if (cryptKey.disabled) {cryptKey.parent().parent().hide();} " .
45-
"else {cryptKey.parent().parent().show();}",
43+
'onclick' => "var cryptKey = jQuery('#crypt_key'); var cryptKeyBlock = cryptKey.parent().parent(); ".
44+
"cryptKey.prop('disabled', this.value === '1'); " .
45+
"if (cryptKey.prop('disabled')) { cryptKeyBlock.hide() } " .
46+
"else { cryptKeyBlock.show() }",
4647
'note' => __('The generated key will be displayed after changing.')
4748
]
4849
);

0 commit comments

Comments
 (0)