added warning message
This commit is contained in:
parent
881a8e6a01
commit
77496bd5a2
|
@ -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('');
|
||||
|
|
Loading…
Reference in New Issue