Added OS X meta key check for stopping spinning animation in app and user menu.

This commit is contained in:
Thomas Pulzer 2016-07-29 14:32:25 +02:00 committed by Morris Jobke
parent 1ab9477ac1
commit 8c9961aa22
No known key found for this signature in database
GPG Key ID: 9CE5ED29E7FCD38A
1 changed files with 2 additions and 2 deletions

View File

@ -1506,7 +1506,7 @@ function initCore() {
if(!$app.is('a')) {
$app = $app.closest('a');
}
if(!event.ctrlKey) {
if(!event.ctrlKey && !event.metaKey) {
$app.addClass('app-loading');
} else {
// Close navigation when opening app in
@ -1525,7 +1525,7 @@ function initCore() {
if (!$page.is('a')) {
$page = $page.closest('a');
}
if(!event.ctrlKey) {
if(!event.ctrlKey && !event.metaKey) {
$page.find('img').remove();
$page.find('div').remove(); // prevent odd double-clicks
$page.prepend($('<div/>').addClass('icon-loading-small-dark'));