Convert loading of export/import to jQuery ready event.

This way it is done after document is fully loaded and no race
conditions can appear as with inline js.

patch #2984337, bug #2983446
This commit is contained in:
sutharshan
2010-04-11 11:16:03 +02:00
committed by Michal Čihař
parent d2a2be7764
commit 9fda4bb515
4 changed files with 4 additions and 10 deletions

View File

@@ -63,6 +63,8 @@ $Id$
thanks to Brian Douglass - bhdouglass thanks to Brian Douglass - bhdouglass
+ patch #2984058 [edit] Buttons for quicky creating common SQL queries, thanks + patch #2984058 [edit] Buttons for quicky creating common SQL queries, thanks
to sutharshan. to sutharshan.
+ patch #2984337 [interface] Convert loading of export/import to jQuery ready
event, thanks to sutharshan.
3.3.3.0 (not yet released) 3.3.3.0 (not yet released)
- patch #2982480 [navi] Do not group if there would be one table in group, - patch #2982480 [navi] Do not group if there would be one table in group,

View File

@@ -98,11 +98,6 @@ echo PMA_pluginGetJavascript($export_list);
</div> </div>
</td></tr></table> </td></tr></table>
<script type="text/javascript">
//<![CDATA[
init_options();
//]]>
</script>
<?php if (strlen($table) && ! isset($num_tables) && ! PMA_Table::isMerge($db, $table)) { ?> <?php if (strlen($table) && ! isset($num_tables) && ! PMA_Table::isMerge($db, $table)) { ?>
<div class="formelementrow"> <div class="formelementrow">

View File

@@ -279,8 +279,3 @@ echo "\n";
</fieldset> </fieldset>
</form> </form>
</div> </div>
<script type="text/javascript">
//<![CDATA[
init_options();
//]]>
</script>

View File

@@ -370,6 +370,8 @@ function PMA_pluginGetJavascript(&$list) {
} }
} }
} }
$(document).ready(init_options);
//]]> //]]>
</script> </script>
'; ';