aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-11-13 02:57:15 -0800
committerfriendica <info@friendica.com>2012-11-13 02:57:15 -0800
commit67a7d440d9c8b37acfe2aa7c062f453680c45384 (patch)
tree593c9b9b9d9142010f86af285b27987586f2b229 /view
parent9bfff0bca1c827330b05ea973b785bcabb9dbb4e (diff)
downloadvolse-hubzilla-67a7d440d9c8b37acfe2aa7c062f453680c45384.tar.gz
volse-hubzilla-67a7d440d9c8b37acfe2aa7c062f453680c45384.tar.bz2
volse-hubzilla-67a7d440d9c8b37acfe2aa7c062f453680c45384.zip
usability improvements
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>