added warning message

This commit is contained in:
alejandro-campos 2020-09-09 09:35:21 +02:00
parent 881a8e6a01
commit 77496bd5a2
1 changed files with 13 additions and 0 deletions

View File

@ -1903,6 +1903,7 @@ $class = 'databox filters';
250
);
?>
<span id="url_warning_text" class="error" style="display: none; font-weight: bold;"><?php echo __('Protocol must be specified in URL (i.e.: "https://")'); ?></span>
</td>
</tr>
<tr id="row_field_separator" style="" class="datos">
@ -3652,6 +3653,18 @@ $(document).ready (function () {
$("#inventory_modules").html('');
})
$("#text-url").blur (
function () {
const user_typed_url = $(this).val();
if (user_typed_url.match('^.+:\/\/')) {
$("#url_warning_text").hide();
} else {
$("#url_warning_text").show();
}
}
);
$("#combo_group").change (
function () {
$("#id_agents").html('');