Bug 392376 - "Double-clicking on the selected application within the file handling dialog should work as "OK" and launch the application" [p=florian r=Mano a=blocking-firefox3+]
git-svn-id: svn://10.0.0.236/trunk@239277 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
97ee72e1ba
commit
d3cdf1e8e3
@ -233,6 +233,17 @@ var dialog = {
|
||||
document.getElementById("remember-text").removeAttribute("visible");
|
||||
},
|
||||
|
||||
/**
|
||||
* Function called when the user double clicks on an item of the list
|
||||
*/
|
||||
onDblClick: function onDblClick()
|
||||
{
|
||||
if (this.selectedItem == this._itemChoose)
|
||||
this.chooseApplication();
|
||||
else
|
||||
document.documentElement.acceptDialog();
|
||||
},
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//// Getters / Setters
|
||||
|
||||
|
||||
@ -63,6 +63,7 @@
|
||||
<vbox flex="1">
|
||||
<description id="item-action-text"/>
|
||||
<richlistbox id="items" flex="1"
|
||||
ondblclick="dialog.onDblClick();"
|
||||
onselect="dialog.updateOKButton();">
|
||||
<richlistitem id="item-choose" orient="horizontal" selected="true">
|
||||
<label value="&ChooseApp.description;" flex="1"/>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user