mirror of
https://github.com/moodle/moodle.git
synced 2025-07-24 07:41:40 +02:00
MDL-21503 eliminating global Y
This commit is contained in:
@@ -158,7 +158,8 @@ 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) {
|
||||
Y.use('core_filemanager', function() {
|
||||
// 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]) {
|
||||
@@ -1213,14 +1214,6 @@ function stripHTML(str) {
|
||||
return ret;
|
||||
}
|
||||
|
||||
function json_decode(json) {
|
||||
return Y.JSON.parse(json);
|
||||
}
|
||||
|
||||
function json_encode(data) {
|
||||
return Y.JSON.stringify(data);
|
||||
}
|
||||
|
||||
/**
|
||||
* Finds all help icons on the page and initiates YUI tooltips for
|
||||
* each of them, which load a truncated version of the help's content
|
||||
|
Reference in New Issue
Block a user