Update. Added separate $title param for input submit

This commit is contained in:
sarven 2009-01-17 21:09:42 +00:00
parent 5a81b6d04e
commit 91475ca33f
2 changed files with 3 additions and 3 deletions

View File

@ -137,7 +137,7 @@ class FavorForm extends Form
function formActions()
{
$this->out->submit('favor-submit-' . $this->notice->id,
_('Favor this notice'));
_('Favor'), 'submit', null, _('Favor this notice'));
}
/**

View File

@ -313,14 +313,14 @@ class HTMLOutputter extends XMLOutputter
* @todo add a $name parameter
*/
function submit($id, $label, $cls='submit', $name=null)
function submit($id, $label, $cls='submit', $name=null, $title=null)
{
$this->element('input', array('type' => 'submit',
'id' => $id,
'name' => ($name) ? $name : $id,
'class' => $cls,
'value' => $label,
'title' => $label));
'title' => $title));
}
/**