Bug 1023279 Make conversation window title localizable, and add missing license header. r=nperriault,ui-review=darrin

This commit is contained in:
Mark Banner
2014-06-23 11:48:32 +01:00
parent c11b54372c
commit c1ca2e6c56
4 changed files with 79 additions and 13 deletions

View File

@@ -8,9 +8,7 @@ var loop = loop || {};
loop.conversation = (function(OT, mozL10n) {
"use strict";
var sharedViews = loop.shared.views,
// aliasing translation function as __ for concision
__ = mozL10n.get;
var sharedViews = loop.shared.views;
/**
* App router.
@@ -174,6 +172,8 @@ loop.conversation = (function(OT, mozL10n) {
// else to ensure the L10n environment is setup correctly.
mozL10n.initialize(window.navigator.mozLoop);
document.title = mozL10n.get("incoming_call_title");
router = new ConversationRouter({
conversation: new loop.shared.models.ConversationModel({}, {sdk: OT}),
notifier: new sharedViews.NotificationListView({el: "#messages"})