Add css class to add contact button in url-email widget, and make the icon size 16x16

This commit is contained in:
Hadi Nategh 2014-09-02 09:35:26 +00:00
parent e7bc170c4e
commit 8aa58344b0
2 changed files with 6 additions and 1 deletions

View File

@ -331,7 +331,8 @@ var et2_url_ro = et2_valueWidget.extend([et2_IDetachedDOM],
'presets[email]': jQuery(this).text()
};
return jQuery('<a href="#" title="'+egw.lang('Add a new contact')+'"><img src="'+egw.image("new") +'" style="height:12px;width:12px"/></a>')
return jQuery('<a href="#" class= "et2_url_email_contactPlus" title="'+egw.lang('Add a new contact')+'"><img src="'
+egw.image("new") +'"/></a>')
.on('click', function() {
egw.open('','addressbook','add',extra);
});

View File

@ -162,6 +162,10 @@ a.et2_url.phone {
a.et2_url.url {
background-image: url(images/url.png);
}
.et2_url_email_contactPlus >img {
width: 16px;
height: 16px;
}
.et2_email_popup {
border:0 !important;
padding: 0 !important;