In showTopic.balde.php, if end time is passed, it should show "Ended" instead of the actually time,
and should forbid the edit operations, i.e. If end time is passed, front-end has to hide all edit buttons, and back-end should added end time checking part for edit operations.
Also, currently there is no control for the VISIBLE_AFTER_ENDED option, needed to perform time checking in both back-end and front-end.
For INVISIBLE, check is only performed in back-end now, and it will cause an error TypeError: data.all_ballots is undefined in the front-end, although the ballots is not showing indeed. This can be fix with 2 together.
showTopic.balde.php
, if end time is passed, it should show "Ended" instead of the actually time, and should forbid the edit operations, i.e. If end time is passed, front-end has to hide all edit buttons, and back-end should added end time checking part for edit operations.VISIBLE_AFTER_ENDED
option, needed to perform time checking in both back-end and front-end.INVISIBLE
, check is only performed in back-end now, and it will cause an errorTypeError: data.all_ballots is undefined
in the front-end, although the ballots is not showing indeed. This can be fix with 2 together.