$(document).ready(function(){$(".drop_column_anchor").live("click",function(a){a.preventDefault();a=window.parent.table;var e=$(this).parents("tr"),c=$(e).children("th").children("label").text();a=PMA_messages.strDoYouReally+" :\n ALTER TABLE `"+a+"` DROP `"+c+"`";$(this).PMA_confirm(a,$(this).attr("href"),function(b){PMA_ajaxShowMessage(PMA_messages.strDroppingColumn);$.get(b,{is_js_confirmed:1,ajax_request:true},function(d){if(d.success==true){PMA_ajaxShowMessage(d.message);$(e).hide("medium").remove()}else PMA_ajaxShowMessage(PMA_messages.strErrorProcessingRequest+
" : "+d.error)})})});$(".action_primary a").live("click",function(a){a.preventDefault();a=window.parent.table;var e=$(this).parents("tr").children("th").children("label").text();a=PMA_messages.strDoYouReally+" :\n ALTER TABLE `"+a+"` ADD PRIMARY KEY(`"+e+"`)";$(this).PMA_confirm(a,$(this).attr("href"),function(c){PMA_ajaxShowMessage(PMA_messages.strAddingPrimaryKey);$.get(c,{is_js_confirmed:1,ajax_request:true},function(b){if(b.success==true){PMA_ajaxShowMessage(b.message);$(this).remove();typeof b.reload!=
"undefined"&&window.parent.frame_content.location.reload()}else PMA_ajaxShowMessage(PMA_messages.strErrorProcessingRequest+" : "+b.error)})})});$(".drop_primary_key_index_anchor").live("click",function(a){a.preventDefault();$anchor=$(this);a=$anchor.parents("tr");for(var e=$anchor.parents("td").attr("rowspan")||1,c=a,b=1,d=a.next();b<e;b++,d=d.next())c=c.add(d);a=a.children("td").children(".drop_primary_key_index_msg").val();$anchor.PMA_confirm(a,$anchor.attr("href"),function(g){PMA_ajaxShowMessage(PMA_messages.strDroppingPrimaryKeyIndex);
$.get(g,{is_js_confirmed:1,ajax_request:true},function(f){if(f.success==true){PMA_ajaxShowMessage(f.message);c.hide("medium").remove()}else PMA_ajaxShowMessage(PMA_messages.strErrorProcessingRequest+" : "+f.error)})})})});
