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:
parent
a2fa3ddeb0
commit
fe38635a6c
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user