0.91/chrome/content/preferences.xul
Back to the directory
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<!DOCTYPE prefwindow SYSTEM "chrome://notify/locale/notify.dtd">
<prefwindow
type="prefwindow"
title="&prefs.title;"
id="notifyPrefs"
onload="load()"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
>
<script>
<![CDATA[
function toggleEnableOpenInTab() {
var value = document.getElementById("open").checked;
document.getElementById("open_in_tab").disabled = !value;
}
function load() {
toggleEnableOpenInTab();
}
]]>
</script>
<prefpane id="notifyMonitoringPane" label="&prefs.monitoring;" image="chrome://notify/content/appointment-new-32.png">
<preferences>
<preference id="pref_period" name="extensions.notify.period" type="int" />
</preferences>
<vbox>
<hbox>
<label value="&prefs.period1;" control="period" />
<textbox preference="pref_period" id="period" maxlength="10" pref="true" preftype="int" prefstring="extensions.notify.period" style="width: 5em;" />
<label value="&prefs.period2;" control="period" />
</hbox>
</vbox>
</prefpane>
<prefpane id="notifyNotificationsPane" label="&prefs.notifications;" image="chrome://notify/content/emblem-important-32.png">
<preferences>
<preference id="pref_sound" name="extensions.notify.sound" type="bool" />
<preference id="pref_tray" name="extensions.notify.tray" type="bool" />
<preference id="pref_open" name="extensions.notify.open" type="bool" />
<preference id="pref_open_in_tab" name="extensions.notify.openInTab" type="bool" />
</preferences>
<vbox>
<groupbox style="margin-bottom: 1em;">
<caption label="&prefs.notifyWith;"/>
<checkbox preference="pref_sound" id="sound" label="&prefs.sound;" />
<checkbox preference="pref_tray" id="tray" label="&prefs.tray;" />
<checkbox preference="pref_open" id="open" label="&prefs.open;" oncommand="toggleEnableOpenInTab();" />
</groupbox>
<checkbox preference="pref_open_in_tab" id="open_in_tab" label="&prefs.openInTab;" style="margin-bottom: 1em;" />
<script type="text/javascript">
<![CDATA[
// check if the alert service is present
if (!("@mozilla.org/alerts-service;1" in Components.classes))
document.getElementById("tray").hidden = true;
]]>
</script>
</vbox>
</prefpane>
<prefpane id="notifyOthersPane" label="&prefs.others;" image="chrome://notify/content/preferences-system-32.png">
<preferences>
<preference id="pref_display_Last_Modified" name="extensions.notify.displayLastModified" type="bool" />
</preferences>
<vbox>
<checkbox preference="pref_display_Last_Modified" id="display_Last_Modified" label="&prefs.displayLastModified;" />
<label class="indent" value="&prefs.displayLastModified2;" control="display_Last_Modified" />
<label class="indent" value="&prefs.displayLastModified3;" control="display_Last_Modified" />
</vbox>
</prefpane>
</prefwindow>