load_stemma( selectedStemmaID );
// Set up the relationship mapper button
$('#run_relater').attr( 'action', _get_url([ "relation", textid ]) );
+ // Set up the download button
+ $('#dl_tradition').attr( 'href', _get_url([ "download", textid ]) );
+ $('#dl_tradition').attr( 'download', selectedTextInfo.name + '.xml' );
});
}
stemmata[selectedStemmaID] = data.stemmasvg;
// Display the new stemma
load_stemma( selectedStemmaID );
+ // Show the edit button, in case this was the first new stemma
+ $('#open_stemma_edit').show();
// Reenable the button and close the form
$(evt.target).button("enable");
$('#stemma-edit-dialog').dialog('close');