Fix for space being added to notice form

darcs-hash:20080625142131-982e4-04a23e0c07cff075a3d0ad33f6d765d4eb8b5057.gz
This commit is contained in:
matthew.gregg 2008-06-25 10:21:31 -04:00
parent c0ac127a68
commit 11070e6ab7

View File

@ -99,10 +99,8 @@ function common_element_end($tag) {
function common_element($tag, $attrs=NULL, $content=NULL) { function common_element($tag, $attrs=NULL, $content=NULL) {
common_element_start($tag, $attrs); common_element_start($tag, $attrs);
if ($content) {
global $xw; global $xw;
$xw->text($content); $xw->text($content);
}
common_element_end($tag); common_element_end($tag);
} }
@ -840,7 +838,7 @@ function common_notice_form($action=NULL, $content=NULL) {
common_element('span', array('id' => 'counter', 'class' => 'counter'), '140'); common_element('span', array('id' => 'counter', 'class' => 'counter'), '140');
common_element('textarea', array('id' => 'status_textarea', common_element('textarea', array('id' => 'status_textarea',
'name' => 'status_textarea'), 'name' => 'status_textarea'),
($content) ? $content : ' '); ' ');
if ($action) { if ($action) {
common_hidden('returnto', $action); common_hidden('returnto', $action);
} }