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