Fixed jQuery animation when dropping Routines, Triggers and Events.

This commit is contained in:
Rouslan Placella 2011-05-31 19:21:53 +01:00
parent 97e6b7aa56
commit 9e19d03ed5
3 changed files with 21 additions and 9 deletions

View File

@ -27,10 +27,14 @@ $(document).ready(function() {
PMA_ajaxShowMessage(data.message);
$("#result_query").remove();
if ($('#event_list tr').length == 2) {
$('#event_list').remove();
$('#no_events').show();
$('#event_list').hide("slow", function () {
$(this).remove();
});
$('#no_events').show("slow");
} else {
$curr_event_row.hide("medium").remove();
$curr_event_row.hide("slow", function () {
$(this).remove();
});
}
}
else {

View File

@ -28,10 +28,14 @@ $(document).ready(function() {
PMA_ajaxShowMessage(data.message);
$("#result_query").remove();
if ($('#routine_list tr').length == 2) {
$('#routine_list').remove();
$('#no_routines').show();
$('#routine_list').hide("slow", function () {
$(this).remove();
});
$('#no_routines').show("slow");
} else {
$curr_proc_row.hide("medium").remove();
$curr_proc_row.hide("slow", function () {
$(this).remove();
});
}
}
else {

View File

@ -27,10 +27,14 @@ $(document).ready(function() {
PMA_ajaxShowMessage(data.message);
$("#result_query").remove();
if ($('#trigger_list tr').length == 2) {
$('#trigger_list').remove();
$('#no_triggers').show();
$('#trigger_list').hide("slow", function () {
$(this).remove();
});
$('#no_triggers').show("slow");
} else {
$curr_trig_row.hide("medium").remove();
$curr_trig_row.hide("slow", function () {
$(this).remove();
});
}
}
else {