X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FPoll%2Fpollresponseform.php;h=31e8db94148bfc84fe10d1c8cac4f3fc3b652fad;hb=b6cfcfbcaa0459b39c5d581c103bfa031b2e02cd;hp=87340f926fdaab56444255f58bbc076393cf19a0;hpb=3438a78c023d84c344200b5f2794c37ead83e539;p=quix0rs-gnu-social.git diff --git a/plugins/Poll/pollresponseform.php b/plugins/Poll/pollresponseform.php index 87340f926f..31e8db9414 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() { - $this->out->submit('submit', _m('BUTTON', 'Submit')); + // TRANS: Button text for submitting a poll response. + $this->out->submit('poll-response-submit', _m('BUTTON', 'Submit'), 'submit', 'submit'); } }