diff options
| author | Aurélien Warnon <awa@odoo.com> | 2019-02-21 09:06:26 +0000 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2019-02-26 16:07:16 +0000 |
| commit | 5db9ed0391febb7cabfcd7fadb1971abd2fa0bc4 (patch) | |
| tree | edb8d33100b9cf70a6d6f3e44b4c772269a1cd59 /addons/website_slides/static/src/js/slides_upload.js | |
| parent | 362271f35ad1a2c0bb15b1069deaa864c5100a3b (diff) | |
[REF] website_slides: refactor the slide archive modal on frontend
Purpose
=======
This commits refactors the slide archiving confirmation modal to make it a
standard Dialog (remove global selectors, remove most of useless xml, ...).
It also adds a new slide archive route to allow channel publishers to archive
slides in sudo mode. Indeed ACLs only website_publishers can write on slide
model. In some case people without real rights may update slides.
Commit linked to task ID 1942852 and PR #31394.
Diffstat (limited to 'addons/website_slides/static/src/js/slides_upload.js')
| -rw-r--r-- | addons/website_slides/static/src/js/slides_upload.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/website_slides/static/src/js/slides_upload.js b/addons/website_slides/static/src/js/slides_upload.js index aa6cc6131c5..d5abc73017b 100644 --- a/addons/website_slides/static/src/js/slides_upload.js +++ b/addons/website_slides/static/src/js/slides_upload.js @@ -542,7 +542,7 @@ var SlideUploadDialog = Dialog.extend({ //Quick and really dirty fix for reordering issues if (data.channel_type === 'training' && self.categoryID){ var categoryElement = $('ul[category_id='+self.categoryID+']'); - $('<li hidden class="content-slide" slide_id="'+data.slide_id+'" category_id="'+self.categoryID+'">temp</li>').appendTo(categoryElement); + $('<li hidden class="o_wslides_content_slide" slide_id="'+data.slide_id+'" category_id="'+self.categoryID+'">temp</li>').appendTo(categoryElement); self._reorderSlidesSequence(); } window.location = data.url; |
