diff --git a/js/functions.js b/js/functions.js index 11640867de..a2dde56406 100644 --- a/js/functions.js +++ b/js/functions.js @@ -2410,17 +2410,25 @@ jQuery.fn.PMA_confirm = function (question, url, callbackFn) { * @var button_options Object that stores the options passed to jQueryUI * dialog */ - var button_options = {}; - button_options[PMA_messages.strOK] = function () { - $(this).dialog("close"); - - if ($.isFunction(callbackFn)) { - callbackFn.call(this, url); + var button_options = [ + { + text: PMA_messages.strOK, + 'class': 'submitOK', + click: function () { + $(this).dialog("close"); + if ($.isFunction(callbackFn)) { + callbackFn.call(this, url); + } + } + }, + { + text: PMA_messages.strCancel, + 'class': 'submitCancel', + click: function () { + $(this).dialog("close"); + } } - }; - button_options[PMA_messages.strCancel] = function () { - $(this).dialog("close"); - }; + ]; $('
', {'id': 'confirm_dialog'}) .prepend(question) diff --git a/libraries/server_privileges.lib.php b/libraries/server_privileges.lib.php index 5f08ea40e3..18938ace83 100644 --- a/libraries/server_privileges.lib.php +++ b/libraries/server_privileges.lib.php @@ -2684,7 +2684,7 @@ function PMA_getHtmlForUserRights($db_rights, $dbname, ) { $html_output = ''; $found_rows = array(); - + // display rows if (count($db_rights) < 1) { $html_output .= '