From 9d0c410b3667b65438b0cc07c224f2cf0fde24f6 Mon Sep 17 00:00:00 2001 From: Piotr Przybylski Date: Tue, 11 Oct 2011 02:08:09 +0200 Subject: [PATCH] New create table dialog: fix resize event --- js/functions.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/js/functions.js b/js/functions.js index e8b869d06c..ce2dac63bb 100644 --- a/js/functions.js +++ b/js/functions.js @@ -1521,11 +1521,12 @@ function PMA_createTableDialog( div, url , target) position: ['left','top'], width: window.innerWidth-10, height: window.innerHeight-10, - open: function(event) { + open: function() { + var $dialog = $(this); $(window).bind('resize.dialog-resizer', function() { clearTimeout(timeout); timeout = setTimeout(function() { - $(this).dialog('option', { + $dialog.dialog('option', { width: window.innerWidth-10, height: window.innerHeight-10 }); -- 2.11.4.GIT