The branch, master has been updated via c0120649fb23f4c26981f60f2b8aafff5859cdba (commit) from f2d1aa683292cc269966d56850e317dc2aae2cb4 (commit)
- Log ----------------------------------------------------------------- commit c0120649fb23f4c26981f60f2b8aafff5859cdba Author: Marc Delisle marc@infomarc.info Date: Sun Oct 9 15:41:42 2011 -0400
- Refer to window.document - No need for variables here
Thanks to Piotr for the tips
-----------------------------------------------------------------------
Summary of changes: js/functions.js | 14 ++++++-------- 1 files changed, 6 insertions(+), 8 deletions(-)
diff --git a/js/functions.js b/js/functions.js index 0ed1a22..f9a2494 100644 --- a/js/functions.js +++ b/js/functions.js @@ -1491,12 +1491,6 @@ 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. @@ -1517,8 +1511,12 @@ function PMA_createTableDialog( div, url , target) .append(data) .dialog({ title: PMA_messages['strCreateTable'], - height: current_height, - width: current_width, + /* + * Use a little less than the current value, otherwise there is i + * some overlap; 16 is a value found by experimenting + */ + height: $(window.document).height() - 16, + width: $(window.document).width() - 16, open: PMA_verifyTypeOfAllColumns, buttons : button_options }); // end dialog options
hooks/post-receive