mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
unterminated JS statement
This commit is contained in:
parent
034ef76129
commit
9d8de34633
@ -51,7 +51,7 @@ M.data_filepicker.callback = function(params) {
|
||||
M.data_filepicker.init = function(Y, options) {
|
||||
options.formcallback = M.data_filepicker.callback;
|
||||
if (!M.core_filepicker.instances[options.client_id]) {
|
||||
M.core_filepicker.init(Y, options);
|
||||
M.core_filepicker.init(Y, options);
|
||||
}
|
||||
Y.on('click', function(e, client_id) {
|
||||
e.preventDefault();
|
||||
@ -73,7 +73,7 @@ M.data_urlpicker = {};
|
||||
M.data_urlpicker.init = function(Y, options) {
|
||||
options.formcallback = M.data_urlpicker.callback;
|
||||
if (!M.core_filepicker.instances[options.client_id]) {
|
||||
M.core_filepicker.init(Y, options);
|
||||
M.core_filepicker.init(Y, options);
|
||||
}
|
||||
Y.on('click', function(e, client_id) {
|
||||
e.preventDefault();
|
||||
@ -84,7 +84,7 @@ M.data_urlpicker.init = function(Y, options) {
|
||||
|
||||
M.data_urlpicker.callback = function (params) {
|
||||
document.getElementById('field_url_'+params.client_id).value = params.url;
|
||||
}
|
||||
};
|
||||
|
||||
M.data_imagepicker = {};
|
||||
|
||||
@ -99,7 +99,7 @@ M.data_imagepicker.callback = function(params) {
|
||||
M.data_imagepicker.init = function(Y, options) {
|
||||
options.formcallback = M.data_imagepicker.callback;
|
||||
if (!M.core_filepicker.instances[options.client_id]) {
|
||||
M.core_filepicker.init(Y, options);
|
||||
M.core_filepicker.init(Y, options);
|
||||
}
|
||||
Y.on('click', function(e, client_id) {
|
||||
e.preventDefault();
|
||||
|
Loading…
x
Reference in New Issue
Block a user