aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
Diffstat (limited to 'view')
-rw-r--r--view/js/mod_connections.js11
-rw-r--r--view/tpl/contact_template.tpl10
2 files changed, 12 insertions, 9 deletions
diff --git a/view/js/mod_connections.js b/view/js/mod_connections.js
index 1880222bc..410786cf5 100644
--- a/view/js/mod_connections.js
+++ b/view/js/mod_connections.js
@@ -8,3 +8,14 @@ $(document).ready(function() {
a.setOptions({ params: { type: 'a' }});
});
+
+$("#contacts-search").keyup(function(event){
+ if(event.keyCode == 13){
+ $("#contacts-search-submit").click();
+ }
+});
+$(".autocomplete-w1 .selected").keyup(function(event){
+ if(event.keyCode == 13){
+ $("#contacts-search-submit").click();
+ }
+});
diff --git a/view/tpl/contact_template.tpl b/view/tpl/contact_template.tpl
index 48930b48a..77e4802e5 100644
--- a/view/tpl/contact_template.tpl
+++ b/view/tpl/contact_template.tpl
@@ -5,16 +5,8 @@
onmouseover="if (typeof t$contact.id != 'undefined') clearTimeout(t$contact.id); openMenu('contact-photo-menu-button-$contact.id')"
onmouseout="t$contact.id=setTimeout('closeMenu(\'contact-photo-menu-button-$contact.id\'); closeMenu(\'contact-photo-menu-$contact.id\');',200)" >
- <a href="$contact.url" title="$contact.img_hover" /><img src="$contact.thumb" $contact.sparkle alt="$contact.name" /></a>
+ <a href="$contact.edit" title="$contact.img_hover" /><img src="$contact.thumb" $contact.sparkle alt="$contact.name" /></a>
- {{ if $contact.photo_menu }}
- <span onclick="openClose('contact-photo-menu-$contact.id');" class="fakelink contact-photo-menu-button" id="contact-photo-menu-button-$contact.id">menu</span>
- <div class="contact-photo-menu" id="contact-photo-menu-$contact.id">
- <ul>
- $contact.photo_menu
- </ul>
- </div>
- {{ endif }}
</div>
</div>