[mhk] r1092 committed - Protection on relations origin and dest @mhk_families

1 view
Skip to first unread message

codesite...@google.com

unread,
Jun 30, 2013, 4:23:15 PM6/30/13
to mhk-dis...@googlegroups.com
Revision: 1092
Author: tbc...@gmail.com
Date: Sun Jun 30 13:23:05 2013
Log: Protection on relations origin and dest @mhk_families
http://code.google.com/p/mhk/source/detail?r=1092

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:05:42 2013
+++ /branches/mhk_families/idb/etc/template/new/create_source.vm Sun Jun 30
13:23:05 2013
@@ -288,6 +288,11 @@
alert("You need to fill in the required fields.");
return;
}
+
+ if(relation.origin==relation.destination){
+ alert("Relation origin and destination cant be the same!");
+ return;
+ }

relations.push(relation);

Reply all
Reply to author
Forward
0 new messages