rfe #3158867 [privileges] No DROP DATABASE warning if you delete a user

This commit is contained in:
Marc Delisle
2011-01-15 09:23:57 -05:00
parent 2817ebe8e9
commit e7d9457431
2 changed files with 15 additions and 0 deletions

View File

@@ -440,6 +440,20 @@ $(document).ready(function() {
}) // end $.get
})// end of the paginate users table
/*
* Additional confirmation dialog after clicking
* 'Drop the databases...'
*/
$('#checkbox_drop_users_db').click(function() {
$this_checkbox = $(this);
if ($this_checkbox.is(':checked')) {
var is_confirmed = confirm(PMA_messages['strDropDatabaseStrongWarning'] + '\n' + PMA_messages['strDoYouReally'] + ' :\nDROP DATABASE');
if (! is_confirmed) {
$this_checkbox.attr('checked', false);
}
}
});
}, 'top.frame_content'); //end $(document).ready()
/**#@- */