fixed unterminated JS statements

This commit is contained in:
Petr Skoda 2010-09-18 10:37:19 +00:00
parent 42d121d7ba
commit d306751695
5 changed files with 23 additions and 23 deletions

View file

@ -42,7 +42,7 @@ M.form_filemanager = {};
M.form_filemanager.init = function(Y, options) {
var FileManagerHelper = function(options) {
FileManagerHelper.superclass.constructor.apply(this, arguments);
}
};
FileManagerHelper.NAME = "FileManager";
FileManagerHelper.ATTRS = {
options: {},
@ -546,7 +546,7 @@ M.form_filemanager.init = function(Y, options) {
}
}
});
}
};
M.util.show_confirm_dialog(ev, dialog_options);
}
function rename (type, ev, obj) {
@ -580,7 +580,7 @@ M.form_filemanager.init = function(Y, options) {
scope.rename_dialog.hide();
}
});
}
};
var dialog = Y.one('#fm-rename-dlg');
if (!dialog) {

View file

@ -19,7 +19,7 @@ M.form.initShowAdvanced = function(Y, config) {
}
var showAdvanced = function(config) {
showAdvanced.superclass.constructor.apply(this, arguments);
}
};
showAdvanced.prototype = {
_advButtons : [],
_advAreas : [],
@ -48,14 +48,14 @@ M.form.initShowAdvanced = function(Y, config) {
this._advAreas.removeClass('hide');
}
}
}
};
// Extend it with the YUI widget fw.
Y.extend(showAdvanced, Y.Base, showAdvanced.prototype, {
NAME : 'mform-showAdvanced'
})
});
M.form.showAdvanced = new showAdvanced(config);
return M.form.showAdvanced;
}
};
/**
* 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(){
var dependencyManager = function(config) {
dependencyManager.superclass.constructor.apply(this, arguments);
}
};
dependencyManager.prototype = {
_form : null,
_depElements : [],
@ -138,7 +138,7 @@ M.form.initFormDependencies = function(Y, formid, dependencies) {
if (this.getAttribute('name') == name) {
elements.push(this);
}
})
});
this._nameCollections[name] = new Y.NodeList(elements);
}
return this._nameCollections[name];
@ -292,7 +292,7 @@ M.form.initFormDependencies = function(Y, formid, dependencies) {
hide : false
}
}
}
};
Y.extend(dependencyManager, Y.Base, dependencyManager.prototype, {
NAME : 'mform-dependency-manager'
});
@ -301,4 +301,4 @@ M.form.initFormDependencies = function(Y, formid, dependencies) {
})();
return new M.form.dependencyManager();
}
};

View file

@ -80,5 +80,5 @@ selector = {
}
}
};

View file

@ -14,4 +14,4 @@ M.form_url.init = function(Y, options) {
M.form_url.callback = function (params) {
document.getElementById('id_externalurl').value = params.url;
}
};

View file

@ -71,7 +71,7 @@ YUI.add('moodle-form-dateselector', function(Y) {
}
}
return ret;
}
};
/**
* Calendar class
@ -80,7 +80,7 @@ YUI.add('moodle-form-dateselector', function(Y) {
*/
var CALENDAR = function(config) {
CALENDAR.superclass.constructor.apply(this, arguments);
}
};
CALENDAR.prototype = {
panel : null,
yearselect : null,
@ -186,7 +186,7 @@ YUI.add('moodle-form-dateselector', function(Y) {
M.form.dateselector.currentowner = null;
M.form.dateselector.calendar.selectEvent.unsubscribe(this.set_selects_from_date, this);
}
}
};
Y.extend(CALENDAR, Y.Base, CALENDAR.prototype, {
NAME : 'Date Selector',
ATTRS : {