mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
fixed unterminated JS statements
This commit is contained in:
parent
42d121d7ba
commit
d306751695
5 changed files with 23 additions and 23 deletions
|
@ -42,7 +42,7 @@ M.form_filemanager = {};
|
||||||
M.form_filemanager.init = function(Y, options) {
|
M.form_filemanager.init = function(Y, options) {
|
||||||
var FileManagerHelper = function(options) {
|
var FileManagerHelper = function(options) {
|
||||||
FileManagerHelper.superclass.constructor.apply(this, arguments);
|
FileManagerHelper.superclass.constructor.apply(this, arguments);
|
||||||
}
|
};
|
||||||
FileManagerHelper.NAME = "FileManager";
|
FileManagerHelper.NAME = "FileManager";
|
||||||
FileManagerHelper.ATTRS = {
|
FileManagerHelper.ATTRS = {
|
||||||
options: {},
|
options: {},
|
||||||
|
@ -546,7 +546,7 @@ M.form_filemanager.init = function(Y, options) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
};
|
||||||
M.util.show_confirm_dialog(ev, dialog_options);
|
M.util.show_confirm_dialog(ev, dialog_options);
|
||||||
}
|
}
|
||||||
function rename (type, ev, obj) {
|
function rename (type, ev, obj) {
|
||||||
|
@ -580,7 +580,7 @@ M.form_filemanager.init = function(Y, options) {
|
||||||
scope.rename_dialog.hide();
|
scope.rename_dialog.hide();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
};
|
||||||
|
|
||||||
var dialog = Y.one('#fm-rename-dlg');
|
var dialog = Y.one('#fm-rename-dlg');
|
||||||
if (!dialog) {
|
if (!dialog) {
|
||||||
|
|
|
@ -19,7 +19,7 @@ M.form.initShowAdvanced = function(Y, config) {
|
||||||
}
|
}
|
||||||
var showAdvanced = function(config) {
|
var showAdvanced = function(config) {
|
||||||
showAdvanced.superclass.constructor.apply(this, arguments);
|
showAdvanced.superclass.constructor.apply(this, arguments);
|
||||||
}
|
};
|
||||||
showAdvanced.prototype = {
|
showAdvanced.prototype = {
|
||||||
_advButtons : [],
|
_advButtons : [],
|
||||||
_advAreas : [],
|
_advAreas : [],
|
||||||
|
@ -48,14 +48,14 @@ M.form.initShowAdvanced = function(Y, config) {
|
||||||
this._advAreas.removeClass('hide');
|
this._advAreas.removeClass('hide');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
// Extend it with the YUI widget fw.
|
// Extend it with the YUI widget fw.
|
||||||
Y.extend(showAdvanced, Y.Base, showAdvanced.prototype, {
|
Y.extend(showAdvanced, Y.Base, showAdvanced.prototype, {
|
||||||
NAME : 'mform-showAdvanced'
|
NAME : 'mform-showAdvanced'
|
||||||
})
|
});
|
||||||
M.form.showAdvanced = new showAdvanced(config);
|
M.form.showAdvanced = new showAdvanced(config);
|
||||||
return M.form.showAdvanced;
|
return M.form.showAdvanced;
|
||||||
}
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Initialises a manager for a forms dependencies.
|
* Initialises a manager for a forms dependencies.
|
||||||
|
@ -84,7 +84,7 @@ M.form.initFormDependencies = function(Y, formid, dependencies) {
|
||||||
M.form.dependencyManager = M.form.dependencyManager || (function(){
|
M.form.dependencyManager = M.form.dependencyManager || (function(){
|
||||||
var dependencyManager = function(config) {
|
var dependencyManager = function(config) {
|
||||||
dependencyManager.superclass.constructor.apply(this, arguments);
|
dependencyManager.superclass.constructor.apply(this, arguments);
|
||||||
}
|
};
|
||||||
dependencyManager.prototype = {
|
dependencyManager.prototype = {
|
||||||
_form : null,
|
_form : null,
|
||||||
_depElements : [],
|
_depElements : [],
|
||||||
|
@ -138,7 +138,7 @@ M.form.initFormDependencies = function(Y, formid, dependencies) {
|
||||||
if (this.getAttribute('name') == name) {
|
if (this.getAttribute('name') == name) {
|
||||||
elements.push(this);
|
elements.push(this);
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
this._nameCollections[name] = new Y.NodeList(elements);
|
this._nameCollections[name] = new Y.NodeList(elements);
|
||||||
}
|
}
|
||||||
return this._nameCollections[name];
|
return this._nameCollections[name];
|
||||||
|
@ -292,7 +292,7 @@ M.form.initFormDependencies = function(Y, formid, dependencies) {
|
||||||
hide : false
|
hide : false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
Y.extend(dependencyManager, Y.Base, dependencyManager.prototype, {
|
Y.extend(dependencyManager, Y.Base, dependencyManager.prototype, {
|
||||||
NAME : 'mform-dependency-manager'
|
NAME : 'mform-dependency-manager'
|
||||||
});
|
});
|
||||||
|
@ -301,4 +301,4 @@ M.form.initFormDependencies = function(Y, formid, dependencies) {
|
||||||
})();
|
})();
|
||||||
|
|
||||||
return new M.form.dependencyManager();
|
return new M.form.dependencyManager();
|
||||||
}
|
};
|
|
@ -80,5 +80,5 @@ selector = {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
};
|
||||||
|
|
||||||
|
|
|
@ -14,4 +14,4 @@ M.form_url.init = function(Y, options) {
|
||||||
|
|
||||||
M.form_url.callback = function (params) {
|
M.form_url.callback = function (params) {
|
||||||
document.getElementById('id_externalurl').value = params.url;
|
document.getElementById('id_externalurl').value = params.url;
|
||||||
}
|
};
|
||||||
|
|
6
lib/form/yui/dateselector/dateselector.js
vendored
6
lib/form/yui/dateselector/dateselector.js
vendored
|
@ -71,7 +71,7 @@ YUI.add('moodle-form-dateselector', function(Y) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
}
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Calendar class
|
* Calendar class
|
||||||
|
@ -80,7 +80,7 @@ YUI.add('moodle-form-dateselector', function(Y) {
|
||||||
*/
|
*/
|
||||||
var CALENDAR = function(config) {
|
var CALENDAR = function(config) {
|
||||||
CALENDAR.superclass.constructor.apply(this, arguments);
|
CALENDAR.superclass.constructor.apply(this, arguments);
|
||||||
}
|
};
|
||||||
CALENDAR.prototype = {
|
CALENDAR.prototype = {
|
||||||
panel : null,
|
panel : null,
|
||||||
yearselect : null,
|
yearselect : null,
|
||||||
|
@ -186,7 +186,7 @@ YUI.add('moodle-form-dateselector', function(Y) {
|
||||||
M.form.dateselector.currentowner = null;
|
M.form.dateselector.currentowner = null;
|
||||||
M.form.dateselector.calendar.selectEvent.unsubscribe(this.set_selects_from_date, this);
|
M.form.dateselector.calendar.selectEvent.unsubscribe(this.set_selects_from_date, this);
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
Y.extend(CALENDAR, Y.Base, CALENDAR.prototype, {
|
Y.extend(CALENDAR, Y.Base, CALENDAR.prototype, {
|
||||||
NAME : 'Date Selector',
|
NAME : 'Date Selector',
|
||||||
ATTRS : {
|
ATTRS : {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue