Skip to content

Commit

Permalink
ENGCOM-5763: [EncryptionKey] Fixing the encryption key switching field
Browse files Browse the repository at this point in the history
  • Loading branch information
sidolov committed Sep 5, 2019
2 parents c163aa2 + c32f1dc commit f14b8cc
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -45,7 +45,7 @@ protected function _prepareForm()
'name' => 'generate_random',
'label' => __('Auto-generate a Key'),
'options' => [0 => __('No'), 1 => __('Yes')],
'onclick' => "var cryptKey = jQuery('#crypt_key'); var cryptKeyBlock = cryptKey.parent().parent(); ".
'onchange' => "var cryptKey = jQuery('#crypt_key'); var cryptKeyBlock = cryptKey.parent().parent(); ".
"cryptKey.prop('disabled', this.value === '1'); " .
"if (cryptKey.prop('disabled')) { cryptKeyBlock.hide() } " .
"else { cryptKeyBlock.show() }",
Expand Down

0 comments on commit f14b8cc

Please sign in to comment.