From ed5c160745c9d6968897a9f682664376fd7681c4 Mon Sep 17 00:00:00 2001 From: Garvin Hicking Date: Thu, 16 Sep 2004 10:01:12 +0000 Subject: [PATCH] correctly fix browse foreigners popup for search page --- browse_foreigners.php | 7 ++++--- libraries/functions.js | 2 +- tbl_select.php | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/browse_foreigners.php b/browse_foreigners.php index d9fd43a03..4aa582602 100644 --- a/browse_foreigners.php +++ b/browse_foreigners.php @@ -49,9 +49,9 @@ PMA_setFontSizes(); opener.document.insertForm.elements['field_' + field + '[]'].value = key; self.close(); return false; - } else if (opener.document.insertForm.elements['field_' + field + '[1]']) { + } else if (opener.document.insertForm.elements['field_' + field + '[]']) { // Search form - opener.document.insertForm.elements['field_' + field + '[1]'].value = key; + opener.document.insertForm.elements['field_' + field + '[]'].value = key; self.close(); return false; } @@ -87,6 +87,7 @@ require('./libraries/get_foreign.lib.php');
+ $per_page) { $gotopage = '
' . $GLOBALS['strPageNumber'] - . ''; if ($nbTotalPage < 200) { $firstPage = 1; $lastPage = $nbTotalPage; diff --git a/libraries/functions.js b/libraries/functions.js index ea1520347..a4d105870 100644 --- a/libraries/functions.js +++ b/libraries/functions.js @@ -830,7 +830,7 @@ function insertValueQuery() { /** * listbox redirection */ -function goToUrl(selObj, goToLocation){ +function goToUrl(selObj, goToLocation) { eval("document.location.href = '" + goToLocation + "pos=" + selObj.options[selObj.selectedIndex].value + "'"); } diff --git a/tbl_select.php b/tbl_select.php index 7d5f933c4..94a9bfbfd 100644 --- a/tbl_select.php +++ b/tbl_select.php @@ -279,7 +279,7 @@ function PMA_tbl_select_operator(f, index, multiple) { ?>