Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Bug 977368 - [Contacts] The export footer message gets stuck after exporting multiple times #17096

Merged

Conversation

fcampo
Copy link
Contributor

@fcampo fcampo commented Mar 11, 2014

No description provided.

statusMsg.classList.remove('bannerStart');
statusMsg.classList.remove('bannerEnd');
});
hidingTimeout = setTimeout(hideStatus, STATUS_TIME);
});
}, 0);
});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is a simpler and safer solution:

showStatus(text) {
  if(statusMsg.classList.contains('opening')) {
    // The new text is set
   statusMsg.querySelector('p').textContent = text;
   clearTimeout(hidingTimeout);
   hidingTimeout = setTimeout(hide, STATUS_TIME);
   return;
  }
}


var showStatus = function(text) {
// clean listeners in case of previous race conditions
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needed to do this to avoid the footer getting stuck hidden sometimes, due to race conditions when exported many times in a short span

jmcanterafonseca added a commit that referenced this pull request Mar 17, 2014
Bug 977368 - [Contacts] The export footer message gets stuck after exporting multiple times
@jmcanterafonseca jmcanterafonseca merged commit 9dce9b4 into mozilla-b2g:master Mar 17, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants