3 <!DOCTYPE overlay SYSTEM
"chrome://beagle/locale/beagle.dtd">
5 <?xml-stylesheet href=
"chrome://global/skin/global.css" type=
"text/css"?>
7 <dialog id=
"beagle.addDomainDialog"
8 buttons=
"accept,cancel"
9 buttonlabelaccept=
"Add Domain"
10 title=
"Enter Domain to Add"
11 ondialogaccept=
"beaglePrefsAddFilterClicked();"
12 xmlns=
"http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
15 <caption label=
"Enter domain:" />
17 <textbox id=
"beagle.filterToAdd" />
24 function beaglePrefsAddFilterClicked() {
25 // Add value from entry box into listbox from beaglePrefs window (the calling window)
26 var filter = document.getElementById('beagle.filterToAdd');
27 var listbox = window.opener.document.getElementById('beagle.security.filters');
28 if (filter.value != ''){
29 listbox.appendItem(filter.value, filter.value);