diff --git a/APPL/MGT/mgt_srtkenmerk.js b/APPL/MGT/mgt_srtkenmerk.js index d60d18b390..f8913f152b 100644 --- a/APPL/MGT/mgt_srtkenmerk.js +++ b/APPL/MGT/mgt_srtkenmerk.js @@ -4,19 +4,19 @@ function pre_submit() // var property_type: voor nieuw kenmerk uit formfield "property_type". // voor bestaand kenmerk indien a) wijzigbaar: uit formfield "property_type" // b) niet wijzigbaar: gezet in xxx_kenmerk.asp - var propertyType = ($("#propertytype").length == 0? property_type : $("#propertytype").val() ); + var attributeType = ($("#attributetype").length == 0? property_type : $("#attributetype").val() ); var validation_message = ""; - if (propertyType == "C" && $("#length").val() == "") + if (attributeType == "C" && $("#length").val() == "") validation_message = L("mgt_srtkenmerk_lengte_val1"); - if (propertyType == "N" && $("#length").val() == "") + if (attributeType == "N" && $("#length").val() == "") validation_message = L("mgt_srtkenmerk_lengte_val1"); - if (propertyType == "R" && $("#domain").val() == -1) + if (attributeType == "R" && $("#domain").val() == -1) validation_message = L("mgt_srtkenmerk_domein_val1"); - if (propertyType == "S" && $("#domain").val() == -1) + if (attributeType == "S" && $("#domain").val() == -1) validation_message = L("mgt_srtkenmerk_domein_val1"); - if (propertyType == "C" + if (attributeType == "C" && ( $("#length").val() > 4000 || $("#length").val() < 1 ))