The branch, master has been updated via b41947d46e9ba888cc6f7f94af23e134bf412e08 (commit) from 27624c6875f8d36be974215a2bd2a4f65516b942 (commit)
- Log ----------------------------------------------------------------- commit b41947d46e9ba888cc6f7f94af23e134bf412e08 Author: Marc Delisle marc@infomarc.info Date: Sun Jan 9 07:52:30 2011 -0500
Page selector in navi panel and in db Structure did not trigger on change
-----------------------------------------------------------------------
Summary of changes: db_structure.php | 2 ++ js/functions.js | 13 +++++++++++++ 2 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/db_structure.php b/db_structure.php index 0004d37..fb2ecc0 100644 --- a/db_structure.php +++ b/db_structure.php @@ -83,6 +83,7 @@ if ($num_tables == 0) { /** * Displays the tables list */ +echo '<div id="tableslistcontainer">'; $_url_params = array( 'pos' => $pos, 'db' => $db); @@ -530,6 +531,7 @@ if (!$db_is_information_schema) { // display again the table list navigator PMA_listNavigator($total_num_tables, $pos, $_url_params, 'db_structure.php', 'frame_content', $GLOBALS['cfg']['MaxTableList']); ?> +</div> <hr />
<?php diff --git a/js/functions.js b/js/functions.js index 5ad3c40..3da6c69 100644 --- a/js/functions.js +++ b/js/functions.js @@ -2435,5 +2435,18 @@ $(document).ready(function() { */
$('#visual_builder_anchor').show(); + + /** + * Page selector in db Structure (non-AJAX) + */ + $('#tableslistcontainer').find('#pageselector').live('change', function() { + $(this).parent("form").submit(); + }); + /** + * Page selector in navi panel (non-AJAX) + */ + $('#navidbpageselector').find('#pageselector').live('change', function() { + $(this).parent("form").submit(); + }); }) // end of $(document).ready()
hooks/post-receive