Add file selector types, and minor changes to cursors

This commit is contained in:
michael.lowe%bigfoot.com 2000-05-14 14:25:53 +00:00
parent bfb27a83a7
commit 918e0cb0ca
4 changed files with 7 additions and 4 deletions

View File

@ -8,6 +8,7 @@
max-width : 68px;
padding : 11px 3px 1px 23px;
margin : 0px;
cursor : pointer;
}
#navigator-throbber[busy="true"]

View File

@ -65,6 +65,7 @@ window[chromehidden~="extrachrome"] .chromeclass-extrachrome {
#page-proxy-button
{
list-style-image : url("chrome://communicator/skin/bookmarks/bookmark-item.gif");
cursor : grab;
}
#ubhist-keyword-popup

View File

@ -1104,7 +1104,8 @@ function RevealSearchPanel()
try {
var fp = Components.classes["component://mozilla/filepicker"].createInstance(nsIFilePicker);
fp.init(window, bundle.GetStringFromName("openFile"), nsIFilePicker.modeOpen);
fp.setFilters(nsIFilePicker.filterAll);
fp.setFilters(nsIFilePicker.filterHTML | nsIFilePicker.filterText |
nsIFilePicker.filterAll | nsIFilePicker.filterImages | nsIFilePicker.filterXML);
if (fp.show() == nsIFilePicker.returnOK) {
openNewWindowWith(fp.fileURL.spec);
}

View File

@ -122,10 +122,10 @@ function onChooseFile()
if (dialog.openAppList.data == "2")
fp.setFilters(nsIFilePicker.filterHTML | nsIFilePicker.filterText | nsIFilePicker.filterAll);
else
fp.setFilters(nsIFilePicker.filterAll);
fp.setFilters(nsIFilePicker.filterHTML | nsIFilePicker.filterText |
nsIFilePicker.filterAll | nsIFilePicker.filterImages | nsIFilePicker.filterXML);
fp.show();
if (fp.fileURL.spec && fp.fileURL.spec.length > 0)
if (fp.show() == nsIFilePicker.returnOK && fp.fileURL.spec && fp.fileURL.spec.length > 0)
{
dialog.input.value = fp.fileURL.spec;
}