[Phpmyadmin-git] [SCM] phpMyAdmin branch, master, updated. RELEASE_3_4_0BETA2-19-gb41947d

Marc Delisle lem9 at users.sourceforge.net
Sun Jan 9 13:52:43 CET 2011


The branch, master has been updated
       via  b41947d46e9ba888cc6f7f94af23e134bf412e08 (commit)
      from  27624c6875f8d36be974215a2bd2a4f65516b942 (commit)


- Log -----------------------------------------------------------------
commit b41947d46e9ba888cc6f7f94af23e134bf412e08
Author: Marc Delisle <marc at 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
-- 
phpMyAdmin




More information about the Git mailing list