X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FPoll%2Fpollresponseform.php;h=ce1c31f6c20eeb1eb1691b2dd39b94de01ea8d0b;hb=90d35885aeed68b11a80225ff255b6ac70a349b9;hp=87340f926fdaab56444255f58bbc076393cf19a0;hpb=cfe3e832932ace9c5ad028899a7765b206eaab81;p=quix0rs-gnu-social.git diff --git a/plugins/Poll/pollresponseform.php b/plugins/Poll/pollresponseform.php index 87340f926f..ce1c31f6c2 100644 --- a/plugins/Poll/pollresponseform.php +++ b/plugins/Poll/pollresponseform.php @@ -44,7 +44,6 @@ if (!defined('STATUSNET')) { * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0 * @link http://status.net/ */ - class PollResponseForm extends Form { protected $poll; @@ -57,7 +56,6 @@ class PollResponseForm extends Form * * @return void */ - function __construct(Poll $poll, HTMLOutputter $out) { parent::__construct($out); @@ -69,7 +67,6 @@ class PollResponseForm extends Form * * @return int ID of the form */ - function id() { return 'pollresponse-form'; @@ -80,10 +77,9 @@ class PollResponseForm extends Form * * @return string class of the form */ - function formClass() { - return 'form_settings'; + return 'form_settings ajax'; } /** @@ -91,7 +87,6 @@ class PollResponseForm extends Form * * @return string URL of the action */ - function action() { return common_local_url('respondpoll', array('id' => $this->poll->id)); @@ -102,7 +97,6 @@ class PollResponseForm extends Form * * @return void */ - function formData() { $poll = $this->poll; @@ -127,9 +121,9 @@ class PollResponseForm extends Form * * @return void */ - function formActions() { + // TRANS: Button text for submitting a poll response. $this->out->submit('submit', _m('BUTTON', 'Submit')); } }