designer: fix some of the js errors

This commit is contained in:
Marc Delisle
2006-11-23 12:54:26 +00:00
parent d098a0ed5a
commit 84ce8d7017
2 changed files with 10 additions and 7 deletions

View File

@@ -95,8 +95,8 @@ function MouseMove(e)
if (ON_relation)
{
hint.style.left = e.pageX + 20;
hint.style.top = e.pageY + 20;
document.getElementById('hint').style.left = e.pageX + 20;
document.getElementById('hint').style.top = e.pageY + 20;
}
if(layer_menu_cur_click)
@@ -320,14 +320,14 @@ function Start_relation()
{
document.getElementById('InnoDB_relation').style.display = '';
ON_relation = 1;
hint.innerHTML = LangSelectReferencedKey;
hint.style.visibility = "visible";
document.getElementById('hint').innerHTML = LangSelectReferencedKey;
document.getElementById('hint').style.visibility = "visible";
document.getElementById('rel_button').className = 'M_butt_Selected_down';//'#FFEE99';gray #AAAAAA
}
else
{
hint.innerHTML = "";
hint.style.visibility = "hidden";
document.getElementById('hint').innerHTML = "";
document.getElementById('hint').style.visibility = "hidden";
document.getElementById('rel_button').className = 'M_butt_Selected';
click_field = 0;
ON_relation = 0;
@@ -344,7 +344,7 @@ function Click_field(T,f,PK) // table field
if(j_tabs[db+'.'+T]!='INNODB') document.getElementById('InnoDB_relation').style.display='none';
click_field = 1;
link_relation = "T1=" + T + "&F1=" + f;
hint.innerHTML = LangSelectForeignKey;
document.getElementById('hint').innerHTML = LangSelectForeignKey;
}
else
{