Merge https://github.com/friendica/red into zpull
This commit is contained in:
commit
255190205b
@ -1,4 +1,4 @@
|
|||||||
Terms of Service
|
Terms of Service
|
||||||
================
|
================
|
||||||
|
|
||||||
#include SiteTOS;
|
#include doc/SiteTOS.md;
|
||||||
|
@ -89,3 +89,20 @@ function update_chats(chats) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</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>
|
||||||
|
Reference in New Issue
Block a user