Merge branch 'MDL-58182-master' of https://github.com/snake/moodle

This commit is contained in:
David Monllao 2017-03-20 05:04:25 +01:00
commit eaf3bcfecd
4 changed files with 8 additions and 8 deletions

View File

@ -72,6 +72,7 @@ DIALOGUE = function(config) {
.append(Y.Node.create('<div class="' + CSS.FOOTER + ' yui3-widget-ft"></div>')));
Y.one(document.body).append(config.notificationBase);
config.srcNode = '#' + id;
delete config.buttons; // Don't let anyone pass in buttons as we want to control these during init. addButton can be used later.
DIALOGUE.superclass.constructor.apply(this, [config]);
};
Y.extend(DIALOGUE, Y.Panel, {
@ -778,9 +779,8 @@ Y.Base.modifyAttrs(DIALOGUE, {
* @default {}
*/
buttons: {
// Readonly is really important. We don't want to allow users of the plugin to pass in buttons. closeButton handles this.
readOnly: true,
getter: Y.WidgetButtons.prototype._getButtons,
setter: Y.WidgetButtons.prototype._setButtons,
valueFn: function() {
if (this.get('closeButton') === false) {
return null;

File diff suppressed because one or more lines are too long

View File

@ -72,6 +72,7 @@ DIALOGUE = function(config) {
.append(Y.Node.create('<div class="' + CSS.FOOTER + ' yui3-widget-ft"></div>')));
Y.one(document.body).append(config.notificationBase);
config.srcNode = '#' + id;
delete config.buttons; // Don't let anyone pass in buttons as we want to control these during init. addButton can be used later.
DIALOGUE.superclass.constructor.apply(this, [config]);
};
Y.extend(DIALOGUE, Y.Panel, {
@ -775,9 +776,8 @@ Y.Base.modifyAttrs(DIALOGUE, {
* @default {}
*/
buttons: {
// Readonly is really important. We don't want to allow users of the plugin to pass in buttons. closeButton handles this.
readOnly: true,
getter: Y.WidgetButtons.prototype._getButtons,
setter: Y.WidgetButtons.prototype._setButtons,
valueFn: function() {
if (this.get('closeButton') === false) {
return null;

View File

@ -42,6 +42,7 @@ DIALOGUE = function(config) {
.append(Y.Node.create('<div class="' + CSS.FOOTER + ' yui3-widget-ft"></div>')));
Y.one(document.body).append(config.notificationBase);
config.srcNode = '#' + id;
delete config.buttons; // Don't let anyone pass in buttons as we want to control these during init. addButton can be used later.
DIALOGUE.superclass.constructor.apply(this, [config]);
};
Y.extend(DIALOGUE, Y.Panel, {
@ -748,9 +749,8 @@ Y.Base.modifyAttrs(DIALOGUE, {
* @default {}
*/
buttons: {
// Readonly is really important. We don't want to allow users of the plugin to pass in buttons. closeButton handles this.
readOnly: true,
getter: Y.WidgetButtons.prototype._getButtons,
setter: Y.WidgetButtons.prototype._setButtons,
valueFn: function() {
if (this.get('closeButton') === false) {
return null;