Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add inactive state in popup

  • Loading branch information...
commit 735d9d6d9855791ae3f2aad97669f209bbaaa12c 1 parent 1c61ee3
@swznd swznd authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  js/navigation.js
View
2  js/navigation.js
@@ -135,6 +135,7 @@ function navigationStack(currentView) {
var currentMirror = document.getElementById(current.dataset.mirror);
next.classList.remove('transition-bottom');
next.addEventListener('transitionend', function hideView() {
+ current.dataset.state = 'inactive';
currentMirror.style.display = 'none';
nextMirror.classList.remove('transition-bottom');
next.removeEventListener('transitionend', hideView);
@@ -148,6 +149,7 @@ function navigationStack(currentView) {
var currentMirror = document.getElementById(current.dataset.mirror);
nextMirror.style.display = '';
current.addEventListener('transitionend', function hideView() {
+ current.dataset.state = 'inactive';
currentMirror.classList.add('transition-bottom');
if (typeof callback === 'function') {
setTimeout(callback, 0);
Please sign in to comment.
Something went wrong with that request. Please try again.