Fix: #15136 Pull-request: #15779 Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
commit
291eb002af
@ -504,6 +504,8 @@ $javascriptMessages = [
|
||||
'strYes' => __('Yes'),
|
||||
'strCopyEncryptionKey' => __('Do you want to copy encryption key?'),
|
||||
'strEncryptionKey' => __('Encryption key'),
|
||||
/* l10n: Tip for HEX conversion of Integers */
|
||||
'HexConversionInfo' => __('The HEX function will treat the integer as a string while calculating the hexadecimal value'),
|
||||
|
||||
/* For Tip to be shown on Time field */
|
||||
'strMysqlAllowedValuesTipTime' => __(
|
||||
|
||||
@ -279,6 +279,18 @@ function verificationsAfterFieldChange (urlField, multiEdit, theType) {
|
||||
});
|
||||
}
|
||||
|
||||
if (target.value === 'HEX' && theType.substring(0,3) === 'int') {
|
||||
// Add note when HEX function is selected on a int
|
||||
var newHexInfo = '<br><p id="note' + target.id + '">' + Messages.HexConversionInfo + '</p>';
|
||||
if (!$('#note' + target.id).length) {
|
||||
$thisInput.after(newHexInfo);
|
||||
}
|
||||
} else {
|
||||
$('#note' + target.id)
|
||||
.prev('br')
|
||||
.remove();
|
||||
$('#note' + target.id).remove();
|
||||
}
|
||||
// Unchecks the corresponding "NULL" control
|
||||
$('input[name=\'fields_null[multi_edit][' + multiEdit + '][' + urlField + ']\']').prop('checked', false);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user