forked from mozilla-b2g/gaia
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote branch 'upstream/master' into sms
- Loading branch information
Showing
244 changed files
with
1,003 additions
and
1,899 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -76,6 +76,7 @@ var Browser = { | |
|
||
this.navigate(url); | ||
urlbar.value = url; | ||
urlbar.blur(); | ||
evt.preventDefault(); | ||
break; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
'use strict'; | ||
|
||
var Recents = { | ||
get view() { | ||
delete this.view; | ||
return this.view = document.getElementById('recents-view'); | ||
}, | ||
|
||
setup: function re_setup() { | ||
content = ''; | ||
|
||
this.last.forEach(function recentIterator(recent) { | ||
content += '<div class="recent" data-number="' + recent.number + '"' + | ||
'onclick="CallHandler.call(this.dataset.number)">' + | ||
'<img src="style/fake/photo.png" alt="fake" />' + | ||
'<div class="name">' + recent.name + '</div>' + | ||
'<div class="number">' + recent.number + '</div>' + | ||
'<div class="timestamp">' + recent.timestamp + '</div>' + | ||
'</div>'; | ||
}); | ||
|
||
this.view.innerHTML = content; | ||
}, | ||
|
||
// XXX: fake content for the demo | ||
last: [ | ||
{name: 'Rebecca Mendes', number: '1-555-765-655', timestamp: '2 hours ago'}, | ||
{name: 'Herman Meyer', number: '1-543-323-325', timestamp: '4 hours ago'}, | ||
{name: 'Jordan Campbell', number: '1-555-765-655', timestamp: '1 day ago'}, | ||
{name: 'Simon Hall', number: '1-555-765-655', timestamp: '1 day ago'}, | ||
{name: 'Timon Horton', number: '1-555-765-655', timestamp: '2 days ago'}, | ||
{name: 'Beau Baird', number: '1-555-765-655', timestamp: '2 days ago'}, | ||
{name: 'Ali Chase', number: '1-555-765-643', timestamp: '2 days ago'}, | ||
{name: 'Hi Avila', number: '1-555-779-655', timestamp: '3 days ago'}, | ||
{name: 'Reuben Dalton', number: '1-533-765-655', timestamp: '4 days ago'}, | ||
{name: 'Wang Cote', number: '1-555-765-665', timestamp: '5 days ago'} | ||
] | ||
}; | ||
|
||
window.addEventListener('load', function recentsSetup(evt) { | ||
window.removeEventListener('load', recentsSetup); | ||
Recents.setup(); | ||
}); |
Oops, something went wrong.