Merge branch 'spidev' into 'master'
Pop Update See merge request fronk/thetool!1841
This commit is contained in:
@@ -261,7 +261,7 @@ $(document).ready(function () {
|
||||
var endhe = parseInt($.trim($('#module-he-start').val())) + parseInt($.trim($('#module-he-count').val())) - 1;
|
||||
|
||||
|
||||
if (!$.trim($('#module-name').val()) && $.trim($('#module-type').val()) != "1") {
|
||||
if (!$.trim($('#module-name').val()) && $.trim($('#module-type').val()) != "1" && $.trim($('#module-type').val()) != "0") {
|
||||
error = "Modul Name darf nicht leer sein";
|
||||
}
|
||||
if ($.trim($('#module-type').val()) == "1" && !$.trim($('#module-device-id').val())) {
|
||||
@@ -318,7 +318,7 @@ $(document).ready(function () {
|
||||
var rackid = trigger.closest('table').find('th').data('rackid');
|
||||
var error;
|
||||
let side = trigger.closest('tbody').data('side');
|
||||
if (!$.trim($('#module-name').val())) {
|
||||
if (!$.trim($('#module-name').val()) && $.trim($('#module-type').val()) != "1" && $.trim($('#module-type').val()) != "0") {
|
||||
error = "Modul Name darf nicht leer sein";
|
||||
}
|
||||
if (!error) {
|
||||
|
||||
Reference in New Issue
Block a user