Skip to content

Commit

Permalink
[FIX] website_slides: small fixes
Browse files Browse the repository at this point in the history
This commit brings a few smalls fixes:
- replace this by self to avoid js error
- remove useless part of code
- ...

Task-1941250
  • Loading branch information
jem-odoo committed Feb 18, 2019
1 parent 6fd52eb commit e99d98b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion addons/website_slides/static/src/js/slides_upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ var SlideUploadDialog = Dialog.extend({
this.isValidUrl = false;
this.set('can_submit_form', false);
this._fetchUrlPreview(url).then(function (data) {
this.set('can_submit_form', true);
self.set('can_submit_form', true);
if (data.error) {
self._alertDisplay(data.error);
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@
</ul>
</div>
</div>
<canvas id="data_canvas" class="d-none"></canvas>
</form>
</div>
</t>
Expand Down

0 comments on commit e99d98b

Please sign in to comment.