| [ Index ] |
PHP Cross Reference of Moodle 310 |
[Summary view] [Print] [Text view]
1 /** 2 * A registry for the different types of modal. 3 * 4 * @module core/modal_registry 5 * @class modal_registry 6 * @copyright 2016 Ryan Wyllie <ryan@moodle.com> 7 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later 8 */ 9 define("core/modal_registry",["core/notification","core/prefetch"],(function(Notification,Prefetch){var registry={},get=function(type){return registry[type]};return{register:function(type,module,template){get(type)&&Notification.exception({message:"Modal of type '"+type+"' is already registered"}),module&&"function"==typeof module||Notification.exception({message:"You must provide a modal module"}),template||Notification.exception({message:"You must provide a modal template"}),registry[type]={module:module,template:template},Prefetch.prefetchTemplate(template)},get:get}})); 10 11 //# sourceMappingURL=modal_registry.min.js.map
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Wed Jan 22 11:59:49 2025 | Cross-referenced by PHPXref 0.7.1 |