[Phpmyadmin-git] [SCM] phpMyAdmin branch, master, updated. RELEASE_3_4_6RC1-20768-g554c1df

Marc Delisle lem9 at users.sourceforge.net
Sun Oct 9 12:45:55 CEST 2011


The branch, master has been updated
       via  554c1df307b47516dc0249fc75bdec2ad5c5e5a1 (commit)
      from  eef315c6354950687004007f66e8982c90836c4d (commit)


- Log -----------------------------------------------------------------
commit 554c1df307b47516dc0249fc75bdec2ad5c5e5a1
Author: Marc Delisle <marc at infomarc.info>
Date:   Sun Oct 9 06:45:32 2011 -0400

    Increase the size of the Create table dialog, based on the frame size

-----------------------------------------------------------------------

Summary of changes:
 js/functions.js |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/js/functions.js b/js/functions.js
index b8db515..9d14eec 100644
--- a/js/functions.js
+++ b/js/functions.js
@@ -1491,6 +1491,12 @@ function PMA_createTableDialog( div, url , target)
      button_options_error[PMA_messages['strOK']] = function() {$(this).parent().dialog('close').remove();}
 
      var $msgbox = PMA_ajaxShowMessage();
+     /*
+      * Use a little less than the current value, otherwise there is some 
+      * overlap; 16 is a value found by experimenting
+      */
+     var current_width = $(top.frame_content).width() - 16;
+     var current_height = $(top.frame_content).height() - 16;
 
      $.get( target , url ,  function(data) {
          //in the case of an error, show the error message returned.
@@ -1511,8 +1517,8 @@ function PMA_createTableDialog( div, url , target)
              .append(data)
              .dialog({
                  title: PMA_messages['strCreateTable'],
-                 height: 600,
-                 width: 900,
+                 height: current_height,
+                 width: current_width,
                  open: PMA_verifyTypeOfAllColumns,
                  buttons : button_options
              }); // end dialog options


hooks/post-receive
-- 
phpMyAdmin




More information about the Git mailing list