diff --git a/js/app/date_poll.js b/js/app/date_poll.js index a570ce4..b218ccf 100644 --- a/js/app/date_poll.js +++ b/js/app/date_poll.js @@ -80,7 +80,6 @@ $(document).ready(function () { $(this).find('.hours:eq(' + i + ')').val(first_day_hours[i]); // fill hours } }); - $('#d0-h0').focus(); }); // Buttons "Add an hour" diff --git a/tpl/part/poll_info.tpl b/tpl/part/poll_info.tpl index ec77e4e..e2e4607 100644 --- a/tpl/part/poll_info.tpl +++ b/tpl/part/poll_info.tpl @@ -93,12 +93,12 @@
- +
{if $admin}
- +
diff --git a/tpl/part/vote_table_classic.tpl b/tpl/part/vote_table_classic.tpl index 9385f9e..0c88b78 100644 --- a/tpl/part/vote_table_classic.tpl +++ b/tpl/part/vote_table_classic.tpl @@ -44,8 +44,9 @@ {foreach $votes as $vote} + {* Edited line *} - {if $editingVoteId === $vote->uniqId} {* Edited line *} + {if $editingVoteId === $vote->uniqId && !$expired} diff --git a/tpl/part/vote_table_date.tpl b/tpl/part/vote_table_date.tpl index 810f5c1..626b4e1 100644 --- a/tpl/part/vote_table_date.tpl +++ b/tpl/part/vote_table_date.tpl @@ -179,7 +179,7 @@ {* Line to add a new vote *} - {if $active && $editingVoteId === 0 && !$expired} + {if $active && $editingVoteId === 0 && !$expired && $accessGranted}