From 84ce8d7017fabeaddbad079b4c9de2f94d4be4ba Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Thu, 23 Nov 2006 12:54:26 +0000 Subject: [PATCH] designer: fix some of the js errors --- ChangeLog | 3 +++ pmd/scripts/move.js | 14 +++++++------- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9febbb70c..a23ee23c1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,9 @@ phpMyAdmin - ChangeLog $Id$ $HeadURL$ +2006-11-23 Marc Delisle + * pmd/scripts/move.js: fix a few js errors + 2006-11-22 Marc Delisle * Designer: get rid of pmd_config.php and pmd_get_info.php, rename pmd_session.php to pmd_common.php diff --git a/pmd/scripts/move.js b/pmd/scripts/move.js index 9b0645fde..07d46aa3b 100644 --- a/pmd/scripts/move.js +++ b/pmd/scripts/move.js @@ -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 {