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

Commit

Permalink
Merge pull request #7867 from gtorodelvalle/dialer-bug-835329-localiz…
Browse files Browse the repository at this point in the history
…ation-not-loading-in-attention-screen

Bug 835329 - [DIALER] Timer is not appearing during an outgoing call (r=@etiennesegonzac)(cherry picked from commit 345162a)
  • Loading branch information
gtorodelvalle authored and jhford committed Feb 7, 2013
1 parent 7e54ca6 commit 9cf4dfe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 2 additions & 3 deletions apps/communications/dialer/js/lazy_l10n.js
Expand Up @@ -17,14 +17,13 @@ var LazyL10n = {
// the l10n resources
var l10nScript = document.createElement('script');
l10nScript.src = '/shared/js/l10n.js';
l10nScript.onload = this._finalize.bind(this, callback);
document.head.appendChild(l10nScript);
this._waitForLoad(callback);
this._inDOM = true;

var l10nDateScript = document.createElement('script');
l10nDateScript.src = '/shared/js/l10n_date.js';
document.head.appendChild(l10nDateScript);

this._inDOM = true;
},

_waitForLoad: function ll10n_waitForLoad(callback) {
Expand Down
3 changes: 2 additions & 1 deletion shared/js/l10n.js
Expand Up @@ -947,7 +947,8 @@

// the B2G build system doesn't expose any `document'...
if (typeof(document) !== 'undefined') {
if (document.readyState === 'complete') {
if (document.readyState === 'complete' ||
document.readyState === 'interactive') {
window.setTimeout(l10nStartup);
} else {
document.addEventListener('DOMContentLoaded', l10nStartup);
Expand Down

0 comments on commit 9cf4dfe

Please sign in to comment.