diff options
-rwxr-xr-x | js/start.js | 4 | ||||
-rw-r--r-- | js/vote.js | 2 | ||||
-rw-r--r-- | lib/Migration/Version0009Date20181125061900.php | 2 | ||||
-rw-r--r-- | templates/vote.tmpl.php | 4 |
4 files changed, 6 insertions, 6 deletions
diff --git a/js/start.js b/js/start.js index d4adc4da..c13594b7 100755 --- a/js/start.js +++ b/js/start.js @@ -1,4 +1,4 @@ -/* global clipboard, navigator */ +/* global Clipboard, navigator, deletePoll */ $(document).ready(function () { var clipboard = new Clipboard('.copy-link'); clipboard.on('success', function (e) { @@ -18,7 +18,7 @@ $(document).ready(function () { } }, 3000); }); - + clipboard.on('error', function (e) { var $input = $(e.trigger); var actionMsg = ''; @@ -1,4 +1,4 @@ -/* global Clipboard, Handlebars, navigator */ +/* global Clipboard, Handlebars, navigator, deletePoll */ var newUserOptions = []; var newUserAnswers = []; diff --git a/lib/Migration/Version0009Date20181125061900.php b/lib/Migration/Version0009Date20181125061900.php index 81cc460e..a2a8ecef 100644 --- a/lib/Migration/Version0009Date20181125061900.php +++ b/lib/Migration/Version0009Date20181125061900.php @@ -117,7 +117,7 @@ class Version0009Date20181125061900 extends SimpleMigrationStep { } else { $table = $schema->getTable('polls_events'); - if(!$table->hasColumn('allow_maybe')) { + if (!$table->hasColumn('allow_maybe')) { $table->addColumn('allow_maybe', Type::INTEGER, [ 'notnull' => false, 'default' => 1, diff --git a/templates/vote.tmpl.php b/templates/vote.tmpl.php index e4b02e71..843ae4db 100644 --- a/templates/vote.tmpl.php +++ b/templates/vote.tmpl.php @@ -234,7 +234,7 @@ // look what user voted for this dts foreach ($others[$usr] as $vote) { if ($optionElement->getPollOptionText() === $vote->getVoteOptionText()) { - $class = $vote->getVoteAnswer() . ' icon-'.$vote->getVoteAnswer(); + $class = $vote->getVoteAnswer() . ' icon-'.$vote->getVoteAnswer(); break; } $class = 'no icon-no'; @@ -280,7 +280,7 @@ if (isset($userVoted)) { foreach ($userVoted as $vote) { if ($optionElement->getPollOptionText() === $vote->getVoteOptionText()) { - $class = $vote->getVoteAnswer() . ' icon-'.$vote->getVoteAnswer(); + $class = $vote->getVoteAnswer() . ' icon-' . $vote->getVoteAnswer(); break; } else { $class = 'unvoted'; |