Added OS X meta key check for stopping spinning animation in app and user menu.
This commit is contained in:
parent
1ab9477ac1
commit
8c9961aa22
1 changed files with 2 additions and 2 deletions
|
@ -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'));
|
||||
|
|
Loading…
Reference in a new issue