Revision: 1095
Author:
tbc...@gmail.com
Date: Sun Jun 30 14:55:08 2013
Log: Line colors on create_source @mhk_families
http://code.google.com/p/mhk/source/detail?r=1095
Modified:
/branches/mhk_families/idb/etc/template/new/create_source.vm
=======================================
--- /branches/mhk_families/idb/etc/template/new/create_source.vm Sun Jun 30
14:22:14 2013
+++ /branches/mhk_families/idb/etc/template/new/create_source.vm Sun Jun 30
14:55:08 2013
@@ -252,10 +252,15 @@
}
persons.push(person);
+
var table = document.getElementById("persons_table");
var row=table.insertRow(1);
-
+ if(persons.length%2==0)
+ row.style.backgroundColor="#EEEEEE";
+ else
+ row.style.backgroundColor="WHITE";
+
var id=row.insertCell(0);
id.innerHTML=
person.id;
@@ -308,6 +313,11 @@
var table = document.getElementById("relations_table");
var row=table.insertRow(1);
+ if(relations.length%2==0)
+ row.style.backgroundColor="#EEEEEE";
+ else
+ row.style.backgroundColor="WHITE";
+
var id=row.insertCell(0);
id.innerHTML=
relation.id;
@@ -358,6 +368,11 @@
var table = document.getElementById("attributes_table");
var row=table.insertRow(1);
+ if(attributes.length%2==0)
+ row.style.backgroundColor="#EEEEEE";
+ else
+ row.style.backgroundColor="WHITE";
+
var id=row.insertCell(0);
id.innerHTML=
attribute.id;
@@ -396,6 +411,11 @@
var table = document.getElementById("acts_table");
var row=table.insertRow(1);
+ if(acts.length%2==0)
+ row.style.backgroundColor="#EEEEEE";
+ else
+ row.style.backgroundColor="WHITE";
+
var id=row.insertCell(0);
id.innerHTML=
act.id;
@@ -447,6 +467,11 @@
var table = document.getElementById("functions_table");
var row=table.insertRow(1);
+ if(functions.length%2==0)
+ row.style.backgroundColor="#EEEEEE";
+ else
+ row.style.backgroundColor="WHITE";
+
var id=row.insertCell(0);
id.innerHTML=
function_obj.id;
@@ -479,7 +504,7 @@
source.observation=document.getElementById("source_observation").value;
if(
source.name==""){
- alert("You need to define at least the source name to save.");
+ alert("You need to define at least the source name to import.");
return;
}