/* we need #something to override most of the #content crap */
+#add-mirror-wizard {
+ margin-left: 20px;
+ margin-right: 20px;
+}
+
#add-mirror-wizard .provider-list table {
width: 100%;
}
#add-mirror-wizard .provider-heading {
cursor: pointer;
}
+#add-mirror-wizard .provider-detail fieldset {
+ margin-top: 8px; /* hack */
+ margin-bottom: 8px; /* hack */
+}
\ No newline at end of file
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();
});
exit(1);
}
-class AddMirrorWizard extends Form
+class AddMirrorWizard extends Widget
{
/**
* Name of the form
*
* @return void
*/
- function formData()
+ function show()
{
- $this->out->elementStart('fieldset');
+ $this->out->elementStart('div', array('id' => 'add-mirror-wizard'));
$providers = $this->providers();
$this->showProviders($providers);
- $this->out->elementEnd('fieldset');
+ $this->out->elementEnd('div');
}
function providers()