]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
viz cleanup on AddMirrorWizard
authorBrion Vibber <brion@pobox.com>
Wed, 19 Jan 2011 02:13:24 +0000 (18:13 -0800)
committerBrion Vibber <brion@pobox.com>
Wed, 19 Jan 2011 02:13:24 +0000 (18:13 -0800)
plugins/SubMirror/css/mirrorsettings.css
plugins/SubMirror/js/mirrorsettings.js
plugins/SubMirror/lib/addmirrorwizard.php

index d17c794f40cbdb49d69218282e41e20ecb3137b7..c91bb73b6b5a555ca8cdb427b9731a40503215f7 100644 (file)
@@ -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 */
+}
\ No newline at end of file
index e772af3deab18a68877b0f0162871c67c623c589..a27abe7ad57727eff1a799afe35a3fe8639a6c67 100644 (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();
                     });
index 0994819b41b79d0ccad33956faab08638d593836..7a63f8366b6bebee13315b2e366e8c55df6c8673 100644 (file)
@@ -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()