mirror of
https://github.com/moodle/moodle.git
synced 2025-07-24 07:41:40 +02:00
MDL-21400 converting forms stuff to new M namespace and using standardised JS module coding style, fixed some regressions - for now works in FF only
This commit is contained in:
@@ -157,17 +157,6 @@ M.util.CollapsibleRegion.prototype.icon = null;
|
||||
|
||||
//=== old legacy JS code, hopefully to be replaced soon by M.xx.yy and YUI3 code ===
|
||||
|
||||
function launch_filemanager(options) {
|
||||
// TODO: move to M.form_filemanager.init()
|
||||
YUI(M.yui.loader).use('core_filemanager', function(Y) {
|
||||
var client_id = options.client_id;
|
||||
// filemangers defined in lib/form/filemanager.js
|
||||
if (!filemanagers[client_id]) {
|
||||
filemanagers[client_id] = new M.core_filemanager(options);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function popupchecker(msg) {
|
||||
var testwindow = window.open('', '', 'width=1,height=1,left=0,top=0,scrollbars=no');
|
||||
if (!testwindow) {
|
||||
|
Reference in New Issue
Block a user