1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2025-01-18 07:52:21 +01:00

placeholder are now escaped in core

This commit is contained in:
Morris Jobke 2014-12-18 14:46:52 +01:00
parent a2fa3ddeb0
commit fe38635a6c

View File

@ -530,7 +530,7 @@ OC.Contacts = OC.Contacts || {};
if(self.hasGroup(newname, owner)) {
$(document).trigger('status.contacts.error', {
error: true,
message: t('contacts', 'A group named "{group}" already exists', {group: escapeHTML(newname)})
message: t('contacts', 'A group named "{group}" already exists', {group: newname})
});
return;
}
@ -610,7 +610,7 @@ OC.Contacts = OC.Contacts || {};
var self = this;
if(this.hasGroup(name, OC.currentUser)) {
if(typeof cb === 'function') {
cb({error:true, message:t('contacts', 'A group named "{group}" already exists', {group: escapeHTML(name)})});
cb({error:true, message:t('contacts', 'A group named "{group}" already exists', {group: name})});
}
return;
}