Fix bug preventing new Attribute from being anything but GROUP

This commit is contained in:
objecttothis
2019-02-20 12:06:33 +04:00
parent 20af6120b1
commit 994428eb7f

View File

@@ -73,7 +73,7 @@ $(document).ready(function()
{
var definition_type = $("#definition_type option:selected").text();
if(definition_type == "DATETIME" || definition_type == "GROUP")
if(definition_type == "DATETIME" || (definition_type == "GROUP" && !is_new))
{
$('#definition_type').prop("disabled",true);
}