- Refer to window.document
- No need for variables here Thanks to Piotr for the tips
This commit is contained in:
parent
f2d1aa6832
commit
c0120649fb
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user