FSN#40235 Mislukt toevoegen van een fin-kenmerk wordt niet goed gemeld

svn path=/Website/trunk/; revision=33549
This commit is contained in:
Erik Groener
2017-04-20 08:06:46 +00:00
parent 7eb5aed8c9
commit 6bca53137f

View File

@@ -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
))