| Server IP : 104.21.80.248 / Your IP : 172.71.28.156 Web Server : Apache/2.4.25 (Win32) OpenSSL/1.0.2j PHP/5.6.30 System : Windows NT WIN-ECQAAA40806 6.2 build 9200 (Windows Server 2012 Standard Edition) i586 User : SYSTEM ( 0) PHP Version : 5.6.30 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /Inetpub/www/myschool/triamudom/tuprblearn/lib/yui/src/notification/js/ |
Upload File : |
/* global DIALOGUE_PREFIX */
/**
* A dialogue type designed to display informative messages to users.
*
* @module moodle-core-notification
*/
/**
* Extends core Dialogue to provide a type of dialogue which can be used
* for informative message which are modal, and centered.
*
* @param {Object} config Object literal specifying the dialogue configuration properties.
* @constructor
* @class M.core.notification.info
* @extends M.core.dialogue
*/
var INFO = function() {
INFO.superclass.constructor.apply(this, arguments);
};
Y.extend(INFO, M.core.dialogue, {
initializer: function() {
this.show();
}
}, {
NAME: 'Moodle information dialogue',
CSS_PREFIX: DIALOGUE_PREFIX
});
Y.Base.modifyAttrs(INFO, {
/**
* Whether the widget should be modal or not.
*
* We override this to change the default from false to true for a subset of dialogues.
*
* @attribute modal
* @type Boolean
* @default true
*/
modal: {
validator: Y.Lang.isBoolean,
value: true
}
});
M.core.notification = M.core.notification || {};
M.core.notification.info = INFO;