mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-17 00:45:14 +02:00
- Frost Mobile: redo CSS to adjust automatically to the screen width
- Frost Mobile: various tweaks and fixes - Allow themes to limit number of items on the Network page
This commit is contained in:
parent
e31ee9ed82
commit
d9279da369
10 changed files with 137 additions and 61 deletions
|
@ -401,19 +401,19 @@
|
|||
|
||||
function getPosition(e) {
|
||||
var cursor = {x:0, y:0};
|
||||
if ( e.pageX || e.pageY ) {
|
||||
cursor.x = e.pageX;
|
||||
cursor.y = e.pageY;
|
||||
if ( e.touches[0].pageX || e.touches[0].pageY ) {
|
||||
cursor.x = e.touches[0].pageX;
|
||||
cursor.y = e.touches[0].pageY;
|
||||
}
|
||||
else {
|
||||
if( e.clientX || e.clientY ) {
|
||||
cursor.x = e.clientX + (document.documentElement.scrollLeft || document.body.scrollLeft) - document.documentElement.clientLeft;
|
||||
cursor.y = e.clientY + (document.documentElement.scrollTop || document.body.scrollTop) - document.documentElement.clientTop;
|
||||
if( e.touches[0].clientX || e.touches[0].clientY ) {
|
||||
cursor.x = e.touches[0].clientX + (document.documentElement.scrollLeft || document.body.scrollLeft) - document.documentElement.clientLeft;
|
||||
cursor.y = e.touches[0].clientY + (document.documentElement.scrollTop || document.body.scrollTop) - document.documentElement.clientTop;
|
||||
}
|
||||
else {
|
||||
if( e.x || e.y ) {
|
||||
cursor.x = e.x;
|
||||
cursor.y = e.y;
|
||||
if( e.touches[0].x || e.touches[0].y ) {
|
||||
cursor.touches[0].x = e.touches[0].x;
|
||||
cursor.touches[0].y = e.touches[0].y;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
2
view/theme/frost-mobile/js/main.min.js
vendored
2
view/theme/frost-mobile/js/main.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -1,8 +1,8 @@
|
|||
$j(document).ready(function() {
|
||||
|
||||
/* enable tinymce on focus and click */
|
||||
$j("#profile-jot-text").focus(enableOnUser);
|
||||
$j("#profile-jot-text").click(enableOnUser);
|
||||
/* enable tinymce on focus and click */
|
||||
$j("#profile-jot-text").focus(enableOnUser);
|
||||
$j("#profile-jot-text").click(enableOnUser);
|
||||
|
||||
if(typeof window.AjaxUpload != "undefined") {
|
||||
switch(window.ajaxType) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue