mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
Add file selector types, and minor changes to cursors
This commit is contained in:
parent
bfb27a83a7
commit
918e0cb0ca
@ -8,6 +8,7 @@
|
||||
max-width : 68px;
|
||||
padding : 11px 3px 1px 23px;
|
||||
margin : 0px;
|
||||
cursor : pointer;
|
||||
}
|
||||
|
||||
#navigator-throbber[busy="true"]
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user