This commit is contained in:
friendica 2014-02-01 20:08:36 -08:00
commit 255190205b
2 changed files with 18 additions and 1 deletions

View File

@ -1,4 +1,4 @@
Terms of Service
================
#include SiteTOS;
#include doc/SiteTOS.md;

View File

@ -89,3 +89,20 @@ function update_chats(chats) {
}
</script>
<script>
function isMobile() {
try{ document.createEvent("TouchEvent"); return true; }
catch(e){ return false; }
}
$(function(){
$('#chatText').keypress(function(e){
if (e.keyCode == 13 && e.shiftKey||isMobile()) {
}
else if (e.keyCode == 13) {
e.preventDefault();
$(this).parent('form').trigger('submit');
}
});
});
</script>