Procházet zdrojové kódy

make new properties columns optional by default

Nicolas Cannasse před 4 roky
rodič
revize
b79cb75388
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      hide/comp/cdb/ModalColumnForm.hx

+ 2 - 1
hide/comp/cdb/ModalColumnForm.hx

@@ -184,7 +184,8 @@ class ModalColumnForm extends Modal {
 		} else {
 			form.addClass("create");
 			form.find("input").not("[type=submit]").val("");
-			form.find("[name=req]").prop("checked", true);
+			var isProp = sheet.parent != null && sheet.parent.sheet.columns[sheet.parent.column].type == TProperties;
+			form.find("[name=req]").prop("checked", !isProp);
 			form.find("[name=kind]").val("");
 		}