notice_favorite class

submit doesn't need a paragraph wrapper
This commit is contained in:
sarven 2009-01-15 23:59:43 +00:00
parent d3092274c2
commit f17df2e6be
2 changed files with 3 additions and 5 deletions

View File

@ -125,7 +125,7 @@ class FavorForm extends Form
function formActions()
{
$this->out->submit('favor-submit-' . $this->notice->id,
_('Make a favorite'));
_('Favorite'));
}
/**
@ -136,6 +136,6 @@ class FavorForm extends Form
function formClass()
{
return 'favor';
return 'notice_favorite';
}
}
}

View File

@ -324,13 +324,11 @@ class HTMLOutputter extends XMLOutputter
function submit($id, $label, $cls='submit', $name=null)
{
$this->elementStart('p');
$this->element('input', array('type' => 'submit',
'id' => $id,
'name' => ($name) ? $name : $id,
'class' => $cls,
'value' => $label));
$this->elementEnd('p');
}
/**