diff --git a/src/www/js/Dragonfly.js b/src/www/js/Dragonfly.js
index ba217ca..e29778f 100644
--- a/src/www/js/Dragonfly.js
+++ b/src/www/js/Dragonfly.js
@@ -950,7 +950,7 @@ Dragonfly.start = function ()
$('login-user').value = '';
$('login-password').value = '';
Element.setText ('user-name', d.userName);
- Element.setHTML ('logout-text', _('Log out') + ' ' + d.userName);
+ Element.setHTML ('logout-text', d.format(_('Log out {0}...'), d.userName));
showElement ('content');
// Add administration link if we're admin
diff --git a/src/www/js/Mail.js b/src/www/js/Mail.js
index c5bf5fd..a18e003 100644
--- a/src/www/js/Mail.js
+++ b/src/www/js/Mail.js
@@ -411,7 +411,7 @@ Dragonfly.Mail.joinParticipants = function (parts)
}, parts).join (', ');
};
-Dragonfly.Mail.Conversations = { label: 'Conversations' };
+Dragonfly.Mail.Conversations = { label: N_('Conversations') };
Dragonfly.Mail.handlers['conversations'] = Dragonfly.Mail.Conversations;
Dragonfly.Mail.Conversations.parseArgs = function (loc, args)
@@ -561,7 +561,7 @@ Dragonfly.Mail.Messages.load = function (loc, jsob)
};
*/
-Dragonfly.Mail.Contacts = { label: 'Contacts' };
+Dragonfly.Mail.Contacts = { label: N_('Contacts') };
Dragonfly.Mail.handlers['contacts'] = Dragonfly.Mail.Contacts;
Dragonfly.Mail.Contacts.parseArgs = function (loc, args)
@@ -664,7 +664,7 @@ Dragonfly.Mail.Contacts.getBreadCrumbs = function (loc)
}
};
-Dragonfly.Mail.Subscriptions = { label: 'Mailing Lists' };
+Dragonfly.Mail.Subscriptions = { label: N_('Mailing Lists') };
Dragonfly.Mail.handlers['subscriptions'] = Dragonfly.Mail.Subscriptions;
Dragonfly.Mail.Subscriptions.parseArgs = function (loc, args)
@@ -777,7 +777,7 @@ Dragonfly.Mail.Subscriptions.getBreadCrumbs = function (loc)
}
};
-Dragonfly.Mail.ToMe = { label: 'To Me' };
+Dragonfly.Mail.ToMe = { label: N_('To Me') };
Dragonfly.Mail.handlers['tome'] = Dragonfly.Mail.ToMe;
Dragonfly.Mail.ToMe.parseArgs = function (loc, args)
diff --git a/src/www/js/MailConversationView.js b/src/www/js/MailConversationView.js
index 1dc04e2..aaf0b82 100644
--- a/src/www/js/MailConversationView.js
+++ b/src/www/js/MailConversationView.js
@@ -91,7 +91,7 @@ Dragonfly.Mail.ConversationView.formatPart = function (loc, msg, part)
html.push (v.formatPart(loc, msg, child));
} else {
if (!inAttachments) {
- html.push ('
Attachments:');
+ html.push ('', _('Attachments:'), '');
inAttachments = 1;
}
var partLoc = new d.Location (loc);
diff --git a/src/www/js/OccurrenceEditor.js b/src/www/js/OccurrenceEditor.js
index b9ca5a4..ca0d89f 100644
--- a/src/www/js/OccurrenceEditor.js
+++ b/src/www/js/OccurrenceEditor.js
@@ -124,9 +124,16 @@ Dragonfly.Calendar.OccurrencePopup.prototype.edit = function (evt, occurrence, e
this.setClosable (false);
delete this.changes; // may be set if we're editing after a save but before dispose
if (occurrence) {
- this.occurrence = (typeof occurrence == 'string')
- ? d.JCal.buildNewEvent (occurrence).occurrences[0]
- : occurrence;
+ if (!occurrence.pageX)
+ {
+ this.occurrence = (typeof occurrence == 'string')
+ ? d.JCal.buildNewEvent (occurrence).occurrences[0]
+ : occurrence;
+ }
+ else
+ {
+ // Rebuild the event?
+ }
} else if (!this.occurrence) {
this.occurrence = d.JCal.buildNewEvent ().occurrences[0];
}
diff --git a/src/www/js/Preferences.js b/src/www/js/Preferences.js
index 7fab1b5..a18f211 100644
--- a/src/www/js/Preferences.js
+++ b/src/www/js/Preferences.js
@@ -295,7 +295,17 @@ Dragonfly.Preferences.Editor.build = function (loc)
composerhtml.set (composerpage);
var calendarhtml = new d.HtmlBuilder ();
- calendarhtml.push ('Nothing to see here, move along.
');
+ calendarhtml.push ('',
+ ' | ',
+ ' |
',
+ ' | ',
+ ' |
',
+ '
');
calendarhtml.set (calendarpage);
var form = [
@@ -329,6 +339,8 @@ Dragonfly.Preferences.Editor.save = function ()
p.prefs.mail.autoBcc = $('autobcc').value;
p.prefs.mail.signature = $('signature').value;
p.prefs.mail.usesig = $('usesig').checked;
+ p.prefs.calendar.defaultView = $('defaultcalview').value;
+ p.prefs.calendar.dayStart = $('daystart').value;
// Finish up
p.save();
@@ -350,12 +362,23 @@ Dragonfly.Preferences.Editor.load = function (loc, jsob)
document.title = 'Preferences: ' + Dragonfly.title;
// Mail prefs
- $('from').value = jsob.mail.from;
+ if (jsob.mail && jsob.mail.from)
+ {
+ $('from').value = jsob.mail.from;
+ }
+ else
+ {
+ logWarning('You have no prefs. I should probably warn you, or.. something.');
+ }
- if (jsob.mail.autoBcc) { $('autobcc').value = jsob.mail.autoBcc; }
- if (jsob.mail.pageSize) { $('mailpagesize').value = jsob.mail.pageSize; }
- if (jsob.mail.signature) { $('signature').value = jsob.mail.signature; }
- if (jsob.mail.usesig) { $('usesig').checked = jsob.mail.usesig; }
+ if (jsob.mail.autoBcc) { $('autobcc').value = jsob.mail.autoBcc; }
+ if (jsob.mail.pageSize) { $('mailpagesize').value = jsob.mail.pageSize; }
+ if (jsob.mail.signature) { $('signature').value = jsob.mail.signature; }
+ if (jsob.mail.usesig) { $('usesig').checked = jsob.mail.usesig; }
+
+ // Calendar prefs
+ if (jsob.calendar.defaultView) { $('defaultcalview').value = jsob.calendar.defaultView; }
+ if (jsob.calendar.dayStart) { $('daystart').value = jsob.calendar.dayStart; }
logDebug('We just loaded.');
};