Email type list wasn't initialized.

This commit is contained in:
Thomas Tanghus 2012-08-22 12:40:07 +02:00
parent 78b7e28ce0
commit ac9fd79329
1 changed files with 7 additions and 1 deletions

View File

@ -1290,12 +1290,18 @@ OC.Contacts={
OC.Contacts.Contacts.refreshThumbnail(this.id);
},
addMail:function() {
//alert('addMail');
console.log('addMail');
var emaillist = $('#emaillist');
emaillist.find('li.template:first-child').clone(true).appendTo(emaillist).show().find('a .tip').tipsy();
emaillist.find('li.template:last-child').find('select').addClass('contacts_property');
emaillist.find('li.template:last-child').removeClass('template').addClass('propertycontainer');
emaillist.find('li:last-child').find('input[type="email"]').focus();
emaillist.find('li:last-child').find('select').multiselect({
noneSelectedText: t('contacts', 'Select type'),
header: false,
selectedList: 4,
classes: 'typelist'
});
return false;
},
loadMails:function() {