MINOR Stop using deprecated getTabIndex() in CreditCardField

This commit is contained in:
Ingo Schommer 2012-05-08 14:26:22 +02:00
parent 9052cdc1da
commit 592d42e477

View File

@ -27,7 +27,7 @@ class CreditCardField extends TextField {
* @return string
*/
protected function getTabIndexHTML($increment = 0) {
$tabIndex = (int)$this->getTabIndex() + (int)$increment;
$tabIndex = (int)$this->getAttribute('tabindex') + (int)$increment;
return (is_numeric($tabIndex)) ? ' tabindex = "' . $tabIndex . '"' : '';
}