dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Fix the (un)watch token to include the namespace name."
[lhc/web/wiklou.git]
/
includes
/
specials
/
SpecialUnblock.php
diff --git
a/includes/specials/SpecialUnblock.php
b/includes/specials/SpecialUnblock.php
index
797543f
..
96e4dbf
100644
(file)
--- a/
includes/specials/SpecialUnblock.php
+++ b/
includes/specials/SpecialUnblock.php
@@
-83,7
+83,7
@@
class SpecialUnblock extends SpecialPage {
'Target' => array(
'type' => 'text',
'label-message' => 'ipaddressorusername',
'Target' => array(
'type' => 'text',
'label-message' => 'ipaddressorusername',
- '
tabindex' => '1'
,
+ '
autofocus' => true
,
'size' => '45',
'required' => true,
),
'size' => '45',
'required' => true,
),
@@
-131,6
+131,9
@@
class SpecialUnblock extends SpecialPage {
$fields['Target']['default'] = "#{$this->target}";
break;
}
$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;
}
} else {
$fields['Target']['default'] = $this->target;