"MDL-21170, comment system upgraded to yui3"

This commit is contained in:
Dongsheng Cai
2010-01-22 07:35:56 +00:00
parent dada7d66a4
commit adacb0fe71
4 changed files with 346 additions and 207 deletions

View File

@@ -14,10 +14,6 @@ M.yui.add_module = function(modules) {
}
};
// old JS functions, to be converted soon
function launch_filemanager(options) {
Y.use('core_filemanager', function() {
var client_id = options.client_id;
@@ -28,6 +24,14 @@ function launch_filemanager(options) {
});
}
function initialize_comment(options) {
Y.use('core_comment', function() {
new M.core_comment(options);
});
}
// old JS functions, to be converted soon
// === old legacy JS code, hopefully to be replaced soon by M.xx.yy and YUI3 code ===
function popupchecker(msg) {
@@ -1424,4 +1428,4 @@ function get_image_url(imagename, component) {
function submitFormById(id) {
submit_form_by_id(null, {id: id});
}
}