From 065cb658bb446a90bde82f9196ba80ce38f37301 Mon Sep 17 00:00:00 2001 From: james Date: Mon, 3 Nov 2008 02:11:52 +0000 Subject: [PATCH] Make the translations page much more compact Backport translations dropdown fix from branch --- admin/translations.php | 4 +-- translationsdropdown.inc.php | 53 +++++++++++++++++++++++++++++------- 2 files changed, 44 insertions(+), 13 deletions(-) diff --git a/admin/translations.php b/admin/translations.php index 9c29c66d..78fc446c 100644 --- a/admin/translations.php +++ b/admin/translations.php @@ -129,7 +129,7 @@ echo "".i18n("English")." / ".$translangname."\n"; while($r=mysql_fetch_object($q)) { echo ""; - echo ""; + echo ""; echo "strmd5\">\n"; echo ""; echo htmlspecialchars($r->str); @@ -138,10 +138,8 @@ while($r=mysql_fetch_object($q)) echo ""; echo ""; echo ""; - echo ""; echo "strmd5}\" onchange=\"return doFocus('{$r->strmd5}');\" style=\"width: 95%\" type=\"text\" name=\"val[{$r->strmd5}]\" value=\"".htmlspecialchars($r->val)."\" />"; echo ""; - echo "
"; } echo ""; echo ""; diff --git a/translationsdropdown.inc.php b/translationsdropdown.inc.php index ebb1c09e..34e56124 100644 --- a/translationsdropdown.inc.php +++ b/translationsdropdown.inc.php @@ -42,6 +42,17 @@ var jsTranslateLangs=new Array(); } ?> +function selectVisibility(vis) { + //we'll always have form0=translationdropdownform, form1=langselectform, form2...infinity=forms on the page + for(x=2;x"; + selectVisibility("hidden"); + } translateOpen=!translateOpen; return false; @@ -198,19 +213,37 @@ function handleSaveResponse() -