зеркало из https://github.com/mozilla/gecko-dev.git
Bug 418517 - Add "Select All" button to Page Info "Media" tab r=jaws
This commit is contained in:
Родитель
b2acb2627f
Коммит
30c7e39b9d
|
@ -1240,6 +1240,14 @@ function doCopy()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function doSelectAllMedia()
|
||||||
|
{
|
||||||
|
var tree = document.getElementById("imagetree");
|
||||||
|
|
||||||
|
if (tree)
|
||||||
|
tree.view.selection.selectAll();
|
||||||
|
}
|
||||||
|
|
||||||
function doSelectAll()
|
function doSelectAll()
|
||||||
{
|
{
|
||||||
var elem = document.commandDispatcher.focusedElement;
|
var elem = document.commandDispatcher.focusedElement;
|
||||||
|
|
|
@ -235,6 +235,9 @@
|
||||||
<label control="thepreviewimage" value="&mediaPreview;" class="header"/>
|
<label control="thepreviewimage" value="&mediaPreview;" class="header"/>
|
||||||
</vbox>
|
</vbox>
|
||||||
<spacer id="imageSaveBoxSpacer" flex="1"/>
|
<spacer id="imageSaveBoxSpacer" flex="1"/>
|
||||||
|
<button label="&selectall.label;" accesskey="&selectall.accesskey;"
|
||||||
|
id="selectallbutton"
|
||||||
|
oncommand="doSelectAllMedia();"/>
|
||||||
<button label="&mediaSaveAs;" accesskey="&mediaSaveAs.accesskey;"
|
<button label="&mediaSaveAs;" accesskey="&mediaSaveAs.accesskey;"
|
||||||
icon="save" id="imagesaveasbutton"
|
icon="save" id="imagesaveasbutton"
|
||||||
oncommand="saveMedia();"/>
|
oncommand="saveMedia();"/>
|
||||||
|
|
Загрузка…
Ссылка в новой задаче