Drop Table and Create Table work as expected now on db_create.php too
This commit is contained in:
@@ -5,24 +5,6 @@
|
||||
*/
|
||||
$(document).ready(function() {
|
||||
|
||||
//Drop Database
|
||||
$("#drop_db_anchor").live('click', function(event) {
|
||||
event.preventDefault();
|
||||
|
||||
//context is top.frame_content, so we need to use window.parent.db to access the db var
|
||||
var question = PMA_messages['strDropDatabaseStrongWarning'] + '\n' + PMA_messages['strDoYouReally'] + ' :\n' + 'DROP DATABASE ' + window.parent.db;
|
||||
|
||||
$(this).PMA_confirm(question, $(this).attr('href') ,function(url) {
|
||||
|
||||
PMA_ajaxShowMessage(PMA_messages['strProcessingRequest']);
|
||||
$.get(url, {'is_js_confirmed': '1', 'ajax_request': true}, function(data) {
|
||||
//Database deleted successfully, refresh both the frames
|
||||
window.parent.refreshNavigation();
|
||||
window.parent.refreshMain();
|
||||
})
|
||||
});
|
||||
}); //end of Drop Database Ajax action
|
||||
|
||||
//Truncate Table
|
||||
$(".truncate_table_anchor").live('click', function(event) {
|
||||
event.preventDefault();
|
||||
|
Reference in New Issue
Block a user