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:
Petr Skoda
2010-02-03 14:36:53 +00:00
parent 5f81eeeaca
commit 4c508047eb
15 changed files with 251 additions and 229 deletions

View File

@@ -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) {