mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 17:36:38 +02:00
MDL-44949 Atto: JS error when picking an image from a repository
This commit is contained in:
parent
fc7557677d
commit
8d1c017979
4 changed files with 7 additions and 7 deletions
|
@ -411,8 +411,8 @@ Y.namespace('M.atto_image').Button = Y.Base.create('button', Y.M.editor_atto.Edi
|
|||
input.set('value', params.url);
|
||||
|
||||
// Auto set the width and height.
|
||||
self._form.one('.' + CSS.INPUTWIDTH).set('value', '');
|
||||
self._form.one('.' + CSS.INPUTHEIGHT).set('value', '');
|
||||
this._form.one('.' + CSS.INPUTWIDTH).set('value', '');
|
||||
this._form.one('.' + CSS.INPUTHEIGHT).set('value', '');
|
||||
|
||||
// Load the preview image.
|
||||
this._loadPreviewImage(params.url);
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -411,8 +411,8 @@ Y.namespace('M.atto_image').Button = Y.Base.create('button', Y.M.editor_atto.Edi
|
|||
input.set('value', params.url);
|
||||
|
||||
// Auto set the width and height.
|
||||
self._form.one('.' + CSS.INPUTWIDTH).set('value', '');
|
||||
self._form.one('.' + CSS.INPUTHEIGHT).set('value', '');
|
||||
this._form.one('.' + CSS.INPUTWIDTH).set('value', '');
|
||||
this._form.one('.' + CSS.INPUTHEIGHT).set('value', '');
|
||||
|
||||
// Load the preview image.
|
||||
this._loadPreviewImage(params.url);
|
||||
|
|
|
@ -409,8 +409,8 @@ Y.namespace('M.atto_image').Button = Y.Base.create('button', Y.M.editor_atto.Edi
|
|||
input.set('value', params.url);
|
||||
|
||||
// Auto set the width and height.
|
||||
self._form.one('.' + CSS.INPUTWIDTH).set('value', '');
|
||||
self._form.one('.' + CSS.INPUTHEIGHT).set('value', '');
|
||||
this._form.one('.' + CSS.INPUTWIDTH).set('value', '');
|
||||
this._form.one('.' + CSS.INPUTHEIGHT).set('value', '');
|
||||
|
||||
// Load the preview image.
|
||||
this._loadPreviewImage(params.url);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue