bug #1027321, drop-down databases list keeps focus
This commit is contained in:
@@ -7,6 +7,8 @@ $Source$
|
|||||||
|
|
||||||
2004-09-16 Marc Delisle <lem9@users.sourceforge.net>
|
2004-09-16 Marc Delisle <lem9@users.sourceforge.net>
|
||||||
* config.inc.php, Documentation.html: clarifications about QueryFrame
|
* config.inc.php, Documentation.html: clarifications about QueryFrame
|
||||||
|
* queryframe.php: bug #1027321, drop-down databases list keeps focus,
|
||||||
|
thanks to Michael Keck
|
||||||
|
|
||||||
2004-09-16 Garvin Hicking <me@supergarv.de>
|
2004-09-16 Garvin Hicking <me@supergarv.de>
|
||||||
* libraries/display_export.lib.php: Bug #1010752 - Remove space
|
* libraries/display_export.lib.php: Bug #1010752 - Remove space
|
||||||
|
@@ -88,7 +88,7 @@ function open_querywindow(url) {
|
|||||||
* - sets a new frameset.rows - definition for the
|
* - sets a new frameset.rows - definition for the
|
||||||
* frameset 'leftFrameset' in 'index.php' dynamic.
|
* frameset 'leftFrameset' in 'index.php' dynamic.
|
||||||
* this script was tested on
|
* this script was tested on
|
||||||
* IE 6, Opear 7.53, Netsacpe 7.1 and Firefox 0.9
|
* IE 6, Opera 7.53, Netsacpe 7.1 and Firefox 0.9
|
||||||
* and should work on all other DOM-Browsers and old IE-Browsers.
|
* and should work on all other DOM-Browsers and old IE-Browsers.
|
||||||
* It will never work on Netscape smaller Version 6 and IE smaller Version 4.
|
* It will never work on Netscape smaller Version 6 and IE smaller Version 4.
|
||||||
* Please give me feedback if any browser doesn't work with this script
|
* Please give me feedback if any browser doesn't work with this script
|
||||||
@@ -119,6 +119,23 @@ function resizeRowsLeft() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// added 2004-09-16 by Michael Keck (mkkeck)
|
||||||
|
// bug: #1027321
|
||||||
|
// drop-down databases list keep focus on database change
|
||||||
|
var focus_removed = false;
|
||||||
|
function remove_focus_select() {
|
||||||
|
focus_removed = false;
|
||||||
|
set_focus_to_nav();
|
||||||
|
}
|
||||||
|
function set_focus_to_nav() {
|
||||||
|
if (typeof(parent.frames.nav)!='undefined' && focus_removed!=true) {
|
||||||
|
parent.frames.nav.focus();
|
||||||
|
focus_removed=true;
|
||||||
|
} else {
|
||||||
|
focus_removed=false;
|
||||||
|
setTimeout("set_focus_to_nav();",500);
|
||||||
|
}
|
||||||
|
}
|
||||||
//-->
|
//-->
|
||||||
</script>
|
</script>
|
||||||
<?php
|
<?php
|
||||||
@@ -274,7 +291,7 @@ if ($num_dbs > 1) {
|
|||||||
echo PMA_generate_common_hidden_inputs();
|
echo PMA_generate_common_hidden_inputs();
|
||||||
echo ' <input type="hidden" name="hash" value="' . $hash . '" />' . "\n";
|
echo ' <input type="hidden" name="hash" value="' . $hash . '" />' . "\n";
|
||||||
?>
|
?>
|
||||||
<select name="lightm_db" onchange="this.form.submit();">
|
<select name="lightm_db" onchange="remove_focus_select();this.form.submit();">
|
||||||
<?php
|
<?php
|
||||||
echo ' <option value="">(' . $strDatabases . ') ...</option>' . "\n";
|
echo ' <option value="">(' . $strDatabases . ') ...</option>' . "\n";
|
||||||
$table_list = '';
|
$table_list = '';
|
||||||
|
Reference in New Issue
Block a user