mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 12:09:20 +03:00
Fix unexpected desktop mode on mobile devices + small fixes (#1514)
This commit is contained in:
parent
677a5f2e35
commit
ed5685314e
10 changed files with 115 additions and 88 deletions
|
|
@ -10,7 +10,6 @@ const
|
|||
SUB_QUERY_PREFIX = '&q[]=',
|
||||
|
||||
VERSION = Settings.appSettingsGet('version'),
|
||||
IS_MOBILE = Settings.appSettingsGet('mobile'),
|
||||
|
||||
WEB_PREFIX = Settings.appSettingsGet('webPath') || '',
|
||||
VERSION_PREFIX = Settings.appSettingsGet('webVersionPath') || 'rainloop/v/' + VERSION + '/',
|
||||
|
|
@ -59,7 +58,7 @@ export function rootAdmin()
|
|||
*/
|
||||
export function rootUser()
|
||||
{
|
||||
return IS_MOBILE ? SERVER_PREFIX + '/Mobile/' : ROOT;
|
||||
return ROOT;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -171,7 +170,7 @@ export function append()
|
|||
*/
|
||||
export function change(email)
|
||||
{
|
||||
return serverRequest('Change' + (IS_MOBILE ? 'Mobile' : '')) + encodeURIComponent(email) + '/';
|
||||
return serverRequest('Change') + encodeURIComponent(email) + '/';
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -761,6 +761,7 @@ class MessageModel extends AbstractModel
|
|||
.addClass('lazy-inited')
|
||||
.attr('src', element.dataset.original)
|
||||
.removeAttr('data-loaded')
|
||||
.removeAttr('data-original')
|
||||
.css({opacity: 0.3})
|
||||
.animate({opacity: 1}, 500);
|
||||
}
|
||||
|
|
@ -781,13 +782,12 @@ class MessageModel extends AbstractModel
|
|||
$this
|
||||
.addClass('lazy')
|
||||
.attr('data-original', $this.attr(attr))
|
||||
.removeAttr('data-loaded')
|
||||
.removeAttr(attr);
|
||||
.removeAttr('data-loaded');
|
||||
}
|
||||
else
|
||||
{
|
||||
$this.attr('src', $this.attr(attr))
|
||||
.removeAttr('data-loaded').removeAttr(attr);
|
||||
.removeAttr('data-loaded');
|
||||
}
|
||||
});
|
||||
|
||||
|
|
@ -796,7 +796,7 @@ class MessageModel extends AbstractModel
|
|||
const $this = $(this); // eslint-disable-line no-invalid-this
|
||||
let style = trim($this.attr('style'));
|
||||
style = '' === style ? '' : (';' === style.substr(-1) ? style + ' ' : style + '; ');
|
||||
$this.attr('style', style + $this.attr(attr)).removeAttr(attr);
|
||||
$this.attr('style', style + $this.attr(attr));
|
||||
});
|
||||
|
||||
if (lazy)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue