viz cleanup on AddMirrorWizard
This commit is contained in:
parent
aa901bb61c
commit
b1897e0190
@ -5,6 +5,11 @@
|
||||
|
||||
/* 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%;
|
||||
}
|
||||
@ -15,3 +20,7 @@
|
||||
#add-mirror-wizard .provider-heading {
|
||||
cursor: pointer;
|
||||
}
|
||||
#add-mirror-wizard .provider-detail fieldset {
|
||||
margin-top: 8px; /* hack */
|
||||
margin-bottom: 8px; /* hack */
|
||||
}
|
@ -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();
|
||||
});
|
||||
|
@ -26,7 +26,7 @@ if (!defined('STATUSNET') && !defined('LACONICA')) {
|
||||
exit(1);
|
||||
}
|
||||
|
||||
class AddMirrorWizard extends Form
|
||||
class AddMirrorWizard extends Widget
|
||||
{
|
||||
/**
|
||||
* Name of the form
|
||||
@ -47,14 +47,14 @@ class AddMirrorWizard extends 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()
|
||||
|
Loading…
Reference in New Issue
Block a user