Permalink
Browse files

patch #1837691 [query window] js errors, thanks to Victor Volkov

  • Loading branch information...
lem9 committed Nov 26, 2007
1 parent c6538cd commit 7bb8eddf27719b20d34b81e341fcc245d795bdb4
Showing with 8 additions and 5 deletions.
  1. +1 −0 ChangeLog
  2. +7 −5 querywindow.php
View
@@ -45,6 +45,7 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA
- undefined PMA_MYSQL_INT_VERSION when no default server is set
- bug #1763343 [session] Behavior with session.auto_start enabled
+ [lang] Hungarian update, thanks to Mihály Mészáros
+- patch #1837691 [query window] js errors, thanks to Victor Volkov
2.11.2.2 (2007-11-20)
- bug #1835123 [security] fixed XSS vulnerability on login page,
View
@@ -184,11 +184,13 @@
);
}
// always set focus to the textarea
-$js_events[] = array(
- 'object' => 'window',
- 'event' => 'load',
- 'function' => 'PMA_querywindowSetFocus',
-);
+if ($querydisplay_tab == 'sql' || $querydisplay_tab == 'full') {
+ $js_events[] = array(
+ 'object' => 'window',
+ 'event' => 'load',
+ 'function' => 'PMA_querywindowSetFocus',
+ );
+}
/**
* start HTTP/HTML output

0 comments on commit 7bb8edd

Please sign in to comment.