MDL-55324 atto_media: Preserve help text when adding sources
This commit is contained in:
Vendored
+3
-1
@@ -740,12 +740,14 @@ Y.namespace('M.atto_media').Button = Y.Base.create('button', Y.M.editor_atto.Edi
|
||||
* @private
|
||||
*/
|
||||
_addMediaSourceComponent: function(element, callback) {
|
||||
window.console.log(this.get('help').addsource);
|
||||
var mediumType = this._getMediumTypeFromTabPane(element.ancestor('.tab-pane'));
|
||||
var context = this._getContext({
|
||||
multisource: true,
|
||||
id: CSS.MEDIA_SOURCE,
|
||||
entersourcelabel: mediumType + 'sourcelabel',
|
||||
addcomponentlabel: 'addsource'
|
||||
addcomponentlabel: 'addsource',
|
||||
addsourcehelp: this.get('help').addsource
|
||||
});
|
||||
this._addComponent(element, TEMPLATES.FORM_COMPONENTS.SOURCE, SELECTORS.MEDIA_SOURCE, context, callback);
|
||||
},
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+3
-1
@@ -740,12 +740,14 @@ Y.namespace('M.atto_media').Button = Y.Base.create('button', Y.M.editor_atto.Edi
|
||||
* @private
|
||||
*/
|
||||
_addMediaSourceComponent: function(element, callback) {
|
||||
window.console.log(this.get('help').addsource);
|
||||
var mediumType = this._getMediumTypeFromTabPane(element.ancestor('.tab-pane'));
|
||||
var context = this._getContext({
|
||||
multisource: true,
|
||||
id: CSS.MEDIA_SOURCE,
|
||||
entersourcelabel: mediumType + 'sourcelabel',
|
||||
addcomponentlabel: 'addsource'
|
||||
addcomponentlabel: 'addsource',
|
||||
addsourcehelp: this.get('help').addsource
|
||||
});
|
||||
this._addComponent(element, TEMPLATES.FORM_COMPONENTS.SOURCE, SELECTORS.MEDIA_SOURCE, context, callback);
|
||||
},
|
||||
|
||||
@@ -738,12 +738,14 @@ Y.namespace('M.atto_media').Button = Y.Base.create('button', Y.M.editor_atto.Edi
|
||||
* @private
|
||||
*/
|
||||
_addMediaSourceComponent: function(element, callback) {
|
||||
window.console.log(this.get('help').addsource);
|
||||
var mediumType = this._getMediumTypeFromTabPane(element.ancestor('.tab-pane'));
|
||||
var context = this._getContext({
|
||||
multisource: true,
|
||||
id: CSS.MEDIA_SOURCE,
|
||||
entersourcelabel: mediumType + 'sourcelabel',
|
||||
addcomponentlabel: 'addsource'
|
||||
addcomponentlabel: 'addsource',
|
||||
addsourcehelp: this.get('help').addsource
|
||||
});
|
||||
this._addComponent(element, TEMPLATES.FORM_COMPONENTS.SOURCE, SELECTORS.MEDIA_SOURCE, context, callback);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user