From 88bde613d2ac44b062c377db08caa342049c4d08 Mon Sep 17 00:00:00 2001 From: Madhura Jayaratne Date: Sun, 30 Jan 2011 01:41:26 +0530 Subject: [PATCH] Button caption changed to 'OK' in the case of an error. Redundant 'Back' link removed from the error message. --- js/functions.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/js/functions.js b/js/functions.js index fa25122af..2c8d2a11c 100644 --- a/js/functions.js +++ b/js/functions.js @@ -1679,6 +1679,9 @@ $(document).ready(function() { // in the following function we need to use $(this) button_options[PMA_messages['strCancel']] = function() {$(this).dialog('close').remove();} + var button_options_error = {}; + button_options_error[PMA_messages['strOK']] = function() {$(this).dialog('close').remove();} + PMA_ajaxShowMessage(); if (! $form.find('input:hidden').is('#ajax_request_hidden')) { $form.append(''); @@ -1691,11 +1694,13 @@ $(document).ready(function() { .append(data.error) .dialog({ title: PMA_messages['strCreateTable'], - height: 260, + height: 230, width: 900, open: PMA_verifyTypeOfAllColumns, - buttons : button_options + buttons : button_options_error })// end dialog options + //remove the redundant [Back] link in the error message// + .find('fieldset').remove(); } else { $('
') .append(data)