This is an automated email from the git hooks/post-receive script. New commit to branch feature/pollen-riot-js in repository pollen. See https://gitlab.nuiton.org/chorem/pollen.git commit b08b3c683ea47e6e94648f84b1288df0d50cc51c Author: Tony CHEMIT <dev@tchemit.fr> Date: Wed Jan 25 00:17:49 2017 +0100 Utilisation de moment pour afficher les dates + continue le dev sur les sondages --- .../src/main/web/tag/{polls/CreatedPolls.tag => poll/Polls.tag} | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pollen-ui-riot-js/src/main/web/tag/polls/CreatedPolls.tag b/pollen-ui-riot-js/src/main/web/tag/poll/Polls.tag similarity index 97% rename from pollen-ui-riot-js/src/main/web/tag/polls/CreatedPolls.tag rename to pollen-ui-riot-js/src/main/web/tag/poll/Polls.tag index ce76ca7..72d6f24 100644 --- a/pollen-ui-riot-js/src/main/web/tag/polls/CreatedPolls.tag +++ b/pollen-ui-riot-js/src/main/web/tag/poll/Polls.tag @@ -1,5 +1,5 @@ require('../Pagination.tag'); -<CreatedPolls> +<Polls> <div class="body-container"> <div class="container"> @@ -41,6 +41,7 @@ require('../Pagination.tag'); <script> this.sortName = 'title'; this.sortValue = false; // means asc + this.method = opts.method; let pollService = require('../../js/PollService'); this.callback = (pagination) => { console.info("Request data with pagination::"); @@ -49,7 +50,7 @@ require('../Pagination.tag'); pagination.desc = this.sortValue; } console.info(pagination); - return pollService.createdPolls(pagination).then((result) => { + return pollService[this.method](pagination).then((result) => { this.polls = result.elements; console.info(this.polls); this.update(); @@ -134,4 +135,4 @@ require('../Pagination.tag'); font-size: 20px; } </style> -</CreatedPolls> \ No newline at end of file +</Polls> \ No newline at end of file -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.