Page selector in navi panel and in db Structure did not trigger on change

This commit is contained in:
Marc Delisle
2011-01-09 07:52:30 -05:00
parent 27624c6875
commit b41947d46e
2 changed files with 15 additions and 0 deletions

View File

@@ -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

View File

@@ -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()