diff options
| author | qmo-odoo <qmo@odoo.com> | 2019-04-30 08:14:44 +0000 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2019-05-03 12:43:01 +0000 |
| commit | ef3ccce0798cb3d46fd8523279deed90230566f1 (patch) | |
| tree | a65f5afc1da62981133068dc3ab61b0e9c3ec33f /addons/website_slides_survey/static | |
| parent | 69cd8bc675833870fa242a630391c5e416717e2b (diff) | |
[FIX] website_slides_survey: fix some certifications issues in eLearning frontend
This commit fixes a few issues with courses which have certification
* fix links to already passed certifications: currently it crashed, now it
redirects to the certification end screen;
* "Begin your certification now" green box link now has same behaviour
as links in the list view. It redirects to either the start certification
screen or the first slide in fullscreen mode. Moreover once the user has
started the course (at least one completed slide) this box disappears as
it is not really useful anymore;
Some dead code is removed.
Commit linked to task ID 1978530 (fixes linked to internal testing).
Diffstat (limited to 'addons/website_slides_survey/static')
| -rw-r--r-- | addons/website_slides_survey/static/src/js/slides_course_fullscreen_player.js | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/addons/website_slides_survey/static/src/js/slides_course_fullscreen_player.js b/addons/website_slides_survey/static/src/js/slides_course_fullscreen_player.js index cf64b088d74..0c2baec72f6 100644 --- a/addons/website_slides_survey/static/src/js/slides_course_fullscreen_player.js +++ b/addons/website_slides_survey/static/src/js/slides_course_fullscreen_player.js @@ -9,15 +9,7 @@ Fullscreen.include({ xmlDependencies: (Fullscreen.prototype.xmlDependencies || []).concat( ["/website_slides_survey/static/src/xml/website_slides_fullscreen.xml"] ), - _preprocessSlideData: function (slidesDataList){ - slidesDataList = this._super.apply(this, arguments); - slidesDataList.forEach(function (slideData, index){ - if (slideData.type === "certification"){ - slideData.certificationUrl = '/slides_survey/slide/get_certification_url?slide_id=' + slideData.id; - } - }); - return slidesDataList; - }, + /** * Extend the _renderSlide method so that slides of type "certification" * are also taken into account and rendered correctly |
