added check for element

This commit is contained in:
alejandro-campos 2020-10-27 12:01:38 +01:00
parent 002509500c
commit 315e522b2e
2 changed files with 224 additions and 219 deletions

View File

@ -1340,6 +1340,7 @@ $(document).ready (function () {
var type_name_selected = type_names[type_selected];
var element = document.getElementById("module_type_help");
var language = "<?php echo $config['language']; ?>" ;
if (typeof element !== 'undefined' && element !== null) {
element.onclick = function (event) {
if(type_name_selected == 'async_data' ||
type_name_selected == 'async_proc' ||
@ -1451,6 +1452,7 @@ $(document).ready (function () {
}
}
}
}
if (type_name_selected.match(/_string$/) == null) {
// Numeric types

View File

@ -386,6 +386,8 @@ $next_row++;
console.log(type_name_selected);
var element = document.getElementById("module_type_help");
var language = "<?php echo $config['language']; ?>" ;
if (typeof element !== 'undefined' && element !== null) {
element.onclick = function (event) {
if(type_name_selected == 'async_data' ||
type_name_selected == 'async_proc' ||
@ -501,6 +503,7 @@ $next_row++;
}
}
}
if (type_name_selected.match(/_string$/) == null) {
// Numeric types