MDL-44949 Atto: JS error when picking an image from a repository

This commit is contained in:
Damyon Wiese 2014-04-04 12:03:01 +08:00
parent fc7557677d
commit 8d1c017979
4 changed files with 7 additions and 7 deletions

View file

@ -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

View file

@ -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);

View file

@ -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);