mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 05:15:45 +00:00
More accurate UI for the pref mailnews.mark_message_read.delay (bug 234121).
r+sr=mscott
This commit is contained in:
parent
4ccea79e58
commit
21d641768f
@ -22,6 +22,7 @@
|
||||
# Contributor(s):
|
||||
# Sean Su <ssu@netscape.com>
|
||||
# Scott MacGregor <scott@scott-macgregor.org>
|
||||
# Stefan Borggraefe <Stefan.Borggraefe@gmx.de>
|
||||
#
|
||||
# Alternatively, the contents of this file may be used under the terms of
|
||||
# either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||
@ -72,6 +73,21 @@
|
||||
|
||||
// smart update
|
||||
"enableSmartUpdate", "enableExtensionUpdate"];
|
||||
|
||||
var gMarkAsReadDelay;
|
||||
|
||||
function Startup() {
|
||||
gMarkAsReadDelay = document.getElementById("markAsReadDelay");
|
||||
enableTextbox(document.getElementById("markAsRead"), gMarkAsReadDelay, true);
|
||||
}
|
||||
|
||||
function enableTextbox(checkbox, textbox, startingUp) {
|
||||
textbox.disabled = (!checkbox.checked ||
|
||||
parent.hPrefWindow.getPrefIsLocked(textbox.getAttribute("prefstring")));
|
||||
|
||||
if (!textbox.disabled && !startingUp)
|
||||
textbox.focus();
|
||||
}
|
||||
]]>
|
||||
</script>
|
||||
|
||||
@ -128,7 +144,9 @@
|
||||
<checkbox id="showCondensedAddresses" label="&showCondensedAddresses.label;" prefstring="mail.showCondensedAddresses"/>
|
||||
</hbox>
|
||||
<hbox align="center" pack="start">
|
||||
<checkbox id="markAsRead" label="&markAsRead.label;" prefstring="mailnews.mark_message_read.delay"/>
|
||||
<checkbox id="markAsRead" label="&markAsRead.label;"
|
||||
prefstring="mailnews.mark_message_read.delay"
|
||||
oncommand="enableTextbox(this, gMarkAsReadDelay, false);"/>
|
||||
<textbox id="markAsReadDelay" size="2" preftype="int" prefstring="mailnews.mark_message_read.delay.interval"/>
|
||||
<label value="&markAsReadEnd.label;"/>
|
||||
</hbox>
|
||||
|
@ -2,13 +2,13 @@
|
||||
|
||||
<!-- Privacy Settings -->
|
||||
<!ENTITY privacyTitle.label "Privacy">
|
||||
<!ENTITY disableImageInMailNews.label "Block loading of remote images in mail messages.">
|
||||
<!ENTITY disableImageInMailNews.label "Block loading of remote images in mail messages">
|
||||
<!ENTITY disableImageInMailNews.accesskey "B">
|
||||
<!ENTITY allowRemoteImagesForFriends.label "Allow remote images if the sender is in my:">
|
||||
<!ENTITY allowRemoteImagesForFriends.accesskey "A">
|
||||
<!ENTITY enbJsCheckMailNews.label "Enable JavaScript in mail messages">
|
||||
<!ENTITY enablePhishingDetector.label "Check mail messages for email scams">
|
||||
<!ENTITY enablePhishingDetector.accesskey "l">
|
||||
<!ENTITY enbJsCheckMailNews.label "Enable JavaScript in mail messages.">
|
||||
<!ENTITY enbJsCheckMailNews.accesskey "J">
|
||||
|
||||
<!-- Password Manager -->
|
||||
@ -22,10 +22,13 @@
|
||||
|
||||
<!-- General -->
|
||||
<!ENTITY generalSettings.label "General Settings">
|
||||
<!ENTITY showCondensedAddresses.label "Show only display name for people in my address book.">
|
||||
<!ENTITY markAsRead.label "Mark message read after displaying for">
|
||||
<!ENTITY markAsReadEnd.label "second(s).">
|
||||
<!ENTITY showFolderColumns.label "Show expanded columns in the folder pane.">
|
||||
<!ENTITY showCondensedAddresses.label "Show only display name for people in my address book">
|
||||
<!-- LOCALIZATION NOTE (markAsRead.label): This will concatenate with
|
||||
"xxx seconds before marking a message as read", using a number and
|
||||
(markAsReadEnd.label). -->
|
||||
<!ENTITY markAsRead.label "Wait">
|
||||
<!ENTITY markAsReadEnd.label "seconds before marking a message as read">
|
||||
<!ENTITY showFolderColumns.label "Show expanded columns in the folder pane">
|
||||
<!ENTITY emailCollectionPicker.label "Automatically add outgoing e-mail addresses to my:">
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user