* Fixed skin names according to issue #16
* Fixed rendering of values stored in res.meta.values * Removed obsolete code (mostly disabled by comments already)
This commit is contained in:
parent
5044e3610a
commit
0ba8805d02
25 changed files with 279 additions and 294 deletions
|
@ -112,7 +112,7 @@ User.prototype.list_macro = function(param, type) {
|
|||
memberships.forEach(function(membership) {
|
||||
var site;
|
||||
if (site = membership.get("site")) {
|
||||
site.renderSkin("Site#list");
|
||||
site.renderSkin("Site#preview");
|
||||
}
|
||||
return;
|
||||
});
|
||||
|
@ -135,7 +135,7 @@ User.register = function(data) {
|
|||
// check if username is existing and is clean
|
||||
// can't use isClean() here because we accept
|
||||
// special characters like umlauts and spaces
|
||||
var invalidChar = new RegExp("[^a-zA-Z0-9äöüß\\.\\-_ ]");
|
||||
var invalidChar = new RegExp("[^a-zA-Z0-9<EFBFBD><EFBFBD><EFBFBD><EFBFBD>\\.\\-_ ]");
|
||||
if (!data.name) {
|
||||
throw Error(gettext("Please enter a username."));
|
||||
} else if (data.name.length > 30) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue