Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/polls.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xjs/start.js4
-rw-r--r--js/vote.js2
-rw-r--r--lib/Migration/Version0009Date20181125061900.php2
-rw-r--r--templates/vote.tmpl.php4
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 = '';
diff --git a/js/vote.js b/js/vote.js
index dbe57525..47a70dc3 100644
--- a/js/vote.js
+++ b/js/vote.js
@@ -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';