From 58216a9f6161c64d25e6f7437e448466c7737aea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Chapeaux?= Date: Sat, 20 Oct 2001 10:40:11 +0000 Subject: [PATCH] url has to changed whatever is the control that called the js "change" function --- ChangeLog | 4 ++++ libraries/user_details.js | 8 +++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3d2033075..3d1845fb5 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,10 @@ phpMyAdmin - Changelog $Id$ $Source$ +2001-10-19 Loïc Chapeaux + * libraries/user_details.JS, lines 126-130: url has to changed whatever is + the control that called the "change" function. + 2001-10-18 Loïc Chapeaux * Documentation.html; header.inc.php3; index.php3; left.php3; libraries/common.lib.php3: removed the xml declaration because even if diff --git a/libraries/user_details.js b/libraries/user_details.js index 3034700b8..072bd453c 100644 --- a/libraries/user_details.js +++ b/libraries/user_details.js @@ -123,11 +123,9 @@ function change(the_field) { var l = location.href; var box_name = the_field.name; - if (box_name == 'dbgrant') { - var lpos = l.indexOf('&' + box_name); - if (lpos >= 0) { - l = l.substring(0, lpos); - } + var lpos = l.indexOf('&' + box_name); + if (lpos > 0) { + l = l.substring(0, lpos); } // end if location.href = l + '&' + box_name + '=' + getSelected(the_field);