mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-31 19:10:36 +00:00
bug 370836 - Adds more descriptive date to title bar in day view. Patch by Markus Adrario <MarkusAdrario@web.de>, r=lilmatt, ui-r=mvl
This commit is contained in:
parent
d0236110d4
commit
d1e3d2ddc3
@ -100,7 +100,15 @@
|
||||
.getService(Components.interfaces.nsIStringBundleService);
|
||||
var brand = sbs.createBundle("chrome://branding/locale/brand.properties");
|
||||
|
||||
document.title = aNameArray[2] + " - " + brand.GetStringFromName("brandShortName");
|
||||
var docTitle;
|
||||
if (!aDate) {
|
||||
docTitle = aNameArray[2];
|
||||
} else {
|
||||
var df = Cc["@mozilla.org/calendar/datetime-formatter;1"].
|
||||
getService(Ci.calIDateTimeFormatter);
|
||||
docTitle = df.formatDate(aDate);
|
||||
}
|
||||
document.title = docTitle + " - " + brand.GetStringFromName("brandShortName");
|
||||
]]></body>
|
||||
</method>
|
||||
<method name="moveView">
|
||||
|
@ -144,7 +144,7 @@
|
||||
var index = ((aDate.weekday + i + 7) % 7) + 1;
|
||||
nameArray.push(calGetString("dateFormat", "day."+index+".name"));
|
||||
}
|
||||
document.getAnonymousElementByAttribute(this, "anonid", "nav-control").setNames(nameArray);
|
||||
document.getAnonymousElementByAttribute(this, "anonid", "nav-control").setNames(nameArray, aDate);
|
||||
]]></body>
|
||||
</method>
|
||||
</implementation>
|
||||
|
Loading…
x
Reference in New Issue
Block a user