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:
authorBojan <bogie@bawki.de>2017-04-19 14:50:00 +0300
committerBojan <bogie@bawki.de>2017-04-19 14:50:00 +0300
commitfc064a671462f0829c1e407fd3ca73c080dec015 (patch)
treefc09c9545d9c7d029cf99b5fe3bfc6fee1332f5d /templates/create.tmpl.php
parentcdb7c4c74bc822c6536745a964287caca0f81854 (diff)
Changed type sensitive comparison for getType() to type-insensitive
this allows compatibility with nextcloud 11.0.2
Diffstat (limited to 'templates/create.tmpl.php')
-rw-r--r--templates/create.tmpl.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/templates/create.tmpl.php b/templates/create.tmpl.php
index 88680e4e..8db4c272 100644
--- a/templates/create.tmpl.php
+++ b/templates/create.tmpl.php
@@ -17,7 +17,7 @@
$dates = $_['dates'];
$chosen = '[';
foreach($dates as $d) {
- if($poll->getType() === '0') $chosen .= strtotime($d->getDt());
+ if($poll->getType() == '0') $chosen .= strtotime($d->getDt());
else $chosen .= '"' . $d->getText() . '"';
$chosen .= ',';
}
@@ -97,11 +97,11 @@
<label class="input_title"><?php p($l->t('Type')); ?></label>
- <input type="radio" name="pollType" id="event" value="event" <?php if(!$isUpdate || $poll->getType() === '0') print_unescaped('checked'); ?> />
+ <input type="radio" name="pollType" id="event" value="event" <?php if(!$isUpdate || $poll->getType() == '0') print_unescaped('checked'); ?> />
<label for="event"><?php p($l->t('Event schedule')); ?></label>
<!-- TODO texts to db -->
- <input type="radio" name="pollType" id="text" value="text" <?php if($isUpdate && $poll->getType() === '1') print_unescaped('checked'); ?>>
+ <input type="radio" name="pollType" id="text" value="text" <?php if($isUpdate && $poll->getType() == '1') print_unescaped('checked'); ?>>
<label for="text"><?php p($l->t('Text based')); ?></label>
<label for="isAnonymous" class="input_title"><?php p($l->t('Anonymous')) ?></label>
@@ -122,13 +122,13 @@
</div>
<div class="col-50">
<h2><?php p($l->t('Choices')); ?></h2>
- <div id="date-select-container" <?php if($isUpdate && $poll->getType() === '1') print_unescaped('style="display:none;"'); ?> >
+ <div id="date-select-container" <?php if($isUpdate && $poll->getType() == '1') print_unescaped('style="display:none;"'); ?> >
<label for="datetimepicker" class="input_title"><?php p($l->t('Dates')); ?></label>
<input id="datetimepicker" type="text" />
<table id="selected-dates-table" class="choices">
</table>
</div>
- <div id="text-select-container" <?php if(!$isUpdate || $poll->getType() === '0') print_unescaped('style="display:none;"'); ?> >
+ <div id="text-select-container" <?php if(!$isUpdate || $poll->getType() == '0') print_unescaped('style="display:none;"'); ?> >
<label for="text-title" class="input_title"><?php p($l->t('Text item')); ?></label>
<div class="input-group">
<input type="text" id="text-title" placeholder="<?php print_unescaped('Insert text...'); ?>" />