viz cleanup on AddMirrorWizard

This commit is contained in:
Brion Vibber
2011-01-18 18:13:24 -08:00
parent aa901bb61c
commit b1897e0190
3 changed files with 17 additions and 6 deletions

View File

@@ -26,13 +26,15 @@ $(function() {
function showNew() {
var detail = $('<div class="provider-detail" style="display: none"></div>').insertAfter(node);
detail.load(ajaxize(targetUrl), function(responseText, testStatus, xhr) {
detail.slideDown();
detail.slideDown('fast', function() {
detail.find('input[type="text"]').focus();
});
});
}
var old = addMirror.find('.provider-detail');
if (old.length) {
old.slideUp(function() {
old.slideUp('fast', function() {
old.remove();
showNew();
});