From f7169036bc2bfc29c592a4debc8466e475ccfacf Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Tue, 9 Nov 2010 07:44:17 -0500 Subject: [PATCH] in this case we need to use "this" --- js/functions.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/functions.js b/js/functions.js index e45b717a7..4ccafed20 100644 --- a/js/functions.js +++ b/js/functions.js @@ -1635,7 +1635,8 @@ $(document).ready(function() { * dialog */ var button_options = {}; - button_options[PMA_messages['strCancel']] = function() {$form.dialog('close').remove();} + // in the following function we need to use $(this) + button_options[PMA_messages['strCancel']] = function() {$(this).dialog('close').remove();} PMA_ajaxShowMessage(); if (! $form.find('input:hidden').is('#ajax_request_hidden')) {