Skip to content

Commit

Permalink
MDL-50216 JavaScript: Default visibility of M.core.info set to false
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Mastny authored and abgreeve committed Jun 16, 2015
1 parent f1a415e commit 78ee66c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 40 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -671,25 +671,15 @@ var INFO = function() {
};

Y.extend(INFO, M.core.dialogue, {
initializer: function() {
this.show();
}
}, {
NAME: 'Moodle information dialogue',
CSS_PREFIX: DIALOGUE_PREFIX
});

Y.Base.modifyAttrs(INFO, {
/**
* Boolean indicating whether or not the Widget is visible.
*
* We override this from the default M.core.dialogue attribute value.
*
* @attribute visible
* @default true
* @type Boolean
*/
visible: {
value: true
},

/**
* Whether the widget should be modal or not.
*
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -668,25 +668,15 @@ var INFO = function() {
};

Y.extend(INFO, M.core.dialogue, {
initializer: function() {
this.show();
}
}, {
NAME: 'Moodle information dialogue',
CSS_PREFIX: DIALOGUE_PREFIX
});

Y.Base.modifyAttrs(INFO, {
/**
* Boolean indicating whether or not the Widget is visible.
*
* We override this from the default M.core.dialogue attribute value.
*
* @attribute visible
* @default true
* @type Boolean
*/
visible: {
value: true
},

/**
* Whether the widget should be modal or not.
*
Expand Down
16 changes: 3 additions & 13 deletions lib/yui/src/notification/js/info.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,15 @@ var INFO = function() {
};

Y.extend(INFO, M.core.dialogue, {
initializer: function() {
this.show();
}
}, {
NAME: 'Moodle information dialogue',
CSS_PREFIX: DIALOGUE_PREFIX
});

Y.Base.modifyAttrs(INFO, {
/**
* Boolean indicating whether or not the Widget is visible.
*
* We override this from the default M.core.dialogue attribute value.
*
* @attribute visible
* @default true
* @type Boolean
*/
visible: {
value: true
},

/**
* Whether the widget should be modal or not.
*
Expand Down

0 comments on commit 78ee66c

Please sign in to comment.