Merge "Made LocalFile move/delete/restore handle network partitions better"
[lhc/web/wiklou.git] / includes / specials / SpecialUnblock.php
index ac6aaf6..96e4dbf 100644 (file)
@@ -82,14 +82,14 @@ class SpecialUnblock extends SpecialPage {
                $fields = array(
                        'Target' => array(
                                'type' => 'text',
-                               'label-message' => 'ipadressorusername',
-                               'tabindex' => '1',
+                               'label-message' => 'ipaddressorusername',
+                               'autofocus' => true,
                                'size' => '45',
                                'required' => true,
                        ),
                        'Name' => array(
                                'type' => 'info',
-                               'label-message' => 'ipadressorusername',
+                               'label-message' => 'ipaddressorusername',
                        ),
                        'Reason' => array(
                                'type' => 'text',
@@ -131,6 +131,9 @@ class SpecialUnblock extends SpecialPage {
                                                $fields['Target']['default'] = "#{$this->target}";
                                                break;
                                }
+                               // target is hidden, so the reason is the first element
+                               $fields['Target']['autofocus'] = false;
+                               $fields['Reason']['autofocus'] = true;
                        }
                } else {
                        $fields['Target']['default'] = $this->target;