зеркало из https://github.com/mozilla/gecko-dev.git
Make restoring the default set work.
This commit is contained in:
Родитель
dd6b2975da
Коммит
903e3fd9df
|
@ -71,30 +71,7 @@ function buildDialog()
|
||||||
var toolbarItem = toolbar.firstChild;
|
var toolbarItem = toolbar.firstChild;
|
||||||
while (toolbarItem) {
|
while (toolbarItem) {
|
||||||
var newItem = toolbarItem.cloneNode(true);
|
var newItem = toolbarItem.cloneNode(true);
|
||||||
<<<<<<< customizeToolbar.js
|
|
||||||
addItemToToolbar(newItem, newToolbar);
|
addItemToToolbar(newItem, newToolbar);
|
||||||
=======
|
|
||||||
newItem.removeAttribute("observes");
|
|
||||||
newItem.removeAttribute("disabled");
|
|
||||||
newItem.removeAttribute("type");
|
|
||||||
|
|
||||||
if (newItem.localName == "toolbaritem" &&
|
|
||||||
newItem.firstChild) {
|
|
||||||
newItem.firstChild.removeAttribute("observes");
|
|
||||||
if (newItem.firstChild.localName == "textbox")
|
|
||||||
newItem.firstChild.setAttribute("disabled", "true");
|
|
||||||
else
|
|
||||||
newItem.firstChild.removeAttribute("disabled");
|
|
||||||
}
|
|
||||||
|
|
||||||
enclosure = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul",
|
|
||||||
"toolbarpaletteitem");
|
|
||||||
|
|
||||||
// Set a draggesture handler to allow drag-rearrange within the clone toolbar.
|
|
||||||
enclosure.setAttribute("ondraggesture", "gDraggingFromPalette = false; nsDragAndDrop.startDrag(event, dragObserver)");
|
|
||||||
enclosure.appendChild(newItem);
|
|
||||||
newToolbar.appendChild(enclosure);
|
|
||||||
>>>>>>> 1.20
|
|
||||||
toolbarItem = toolbarItem.nextSibling;
|
toolbarItem = toolbarItem.nextSibling;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -65,7 +65,7 @@
|
||||||
</menupopup>
|
</menupopup>
|
||||||
</menulist>
|
</menulist>
|
||||||
<checkbox label="&useSmallIcons.label;"/>
|
<checkbox label="&useSmallIcons.label;"/>
|
||||||
<button label="&restoreDefaultSet.label;"/>
|
<button label="&restoreDefaultSet.label;" oncommand="resetToDefault()"/>
|
||||||
<spacer flex="1"/>
|
<spacer flex="1"/>
|
||||||
<image id="trash-can"
|
<image id="trash-can"
|
||||||
ondragover="nsDragAndDrop.dragOver(event, trashObserver);"
|
ondragover="nsDragAndDrop.dragOver(event, trashObserver);"
|
||||||
|
|
Загрузка…
Ссылка в новой задаче