Skip to content

Commit

Permalink
Fix notice forms rendering differently than normal on profiles, which…
Browse files Browse the repository at this point in the history
… breaks AJAX submitting
  • Loading branch information
RedEnchilada committed Feb 19, 2015
1 parent 62f42bc commit 5057dd2
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion actions/showstream.php
Expand Up @@ -105,10 +105,18 @@ function title()
}
}

function showNoticeForm()
/*function showNoticeForm()
{
$notice_form = new NoticeForm($this, array('content' => "@{$this->profile->nickname} "));
$notice_form->show();
}*/

function noticeFormOptions()
{
$options = parent::noticeFormOptions();
$options['content'] = "@{$this->profile->nickname} ";

return $options;
}

function handle($args)
Expand Down

0 comments on commit 5057dd2

Please sign in to comment.