[mhk] r1094 committed - Data Protection updated on WebSource@mhk_families

1 view
Skip to first unread message

codesite...@google.com

unread,
Jun 30, 2013, 5:22:30 PM6/30/13
to mhk-dis...@googlegroups.com
Revision: 1094
Author: tbc...@gmail.com
Date: Sun Jun 30 14:22:14 2013
Log: Data Protection updated on WebSource@mhk_families
http://code.google.com/p/mhk/source/detail?r=1094

Modified:
/branches/mhk_families/idb/etc/template/new/create_source.vm

=======================================
--- /branches/mhk_families/idb/etc/template/new/create_source.vm Sun Jun 30
13:23:05 2013
+++ /branches/mhk_families/idb/etc/template/new/create_source.vm Sun Jun 30
14:22:14 2013
@@ -245,6 +245,11 @@
alert("You need to fill in the required fields.");
return;
}
+
+ if(person.sex!="M" && person.sex!="m" && person.sex!="F" &&
person.sex!="f" && person.sex!=""){
+ alert("Person sex must be M/F!");
+ return;
+ }

persons.push(person);

@@ -273,6 +278,11 @@
function printRelationsTable(){
var relation=new Object();

+ if(document.getElementById("relation_origin_select").length==0 ||
document.getElementById("relation_destination_select").length==0){
+ alert("You need to add persons first!");
+ return;
+ }
+
var
origin=document.getElementById("relation_origin_select").selectedIndex;
relation.origin=document.getElementsByTagName("option")[origin].value;

@@ -326,6 +336,11 @@
function printAttributesTable(){
var attribute=new Object();

+ if(document.getElementById("attribute_select").length==0){
+ alert("You need to add persons first!");
+ return;
+ }
+
var index=document.getElementById("attribute_select").selectedIndex;
attribute.person_id=document.getElementsByTagName("option")[index].value;

@@ -403,6 +418,16 @@
function printFunctionsTable(){
var function_obj=new Object();

+ if(document.getElementById("function_act_select").length==0){
+ alert("You need to add acts first!");
+ return;
+ }
+
+ if(document.getElementById("function_origin_select").length==0){
+ alert("You need to add persons first!");
+ return;
+ }
+
var index=document.getElementById("function_act_select").selectedIndex;
function_obj.act_id=document.getElementsByTagName("option")[index].value;

Reply all
Reply to author
Forward
0 new messages