Drop Table and Create Table work as expected now on db_create.php too

This commit is contained in:
ninadsp
2010-07-22 00:12:43 +05:30
parent 6e908dfeb2
commit 9640a580ff
3 changed files with 27 additions and 19 deletions

View File

@@ -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();