bug 367157 - Reworks XUL so individual migrators can be unchecked in the wizard. Patch by Sebastian Schwieger <sebastian.schwieger@googlemail.com>, r1=lilmatt, r2=jminta

This commit is contained in:
mattwillis%gmail.com 2007-02-08 20:29:25 +00:00
Родитель cdc2bbd5e3
Коммит 9008c81398
2 изменённых файлов: 5 добавлений и 16 удалений

Просмотреть файл

@ -74,16 +74,9 @@ var gMigrateWizard = {
LOG("migrators: " + window.arguments.length);
for each (var migrator in window.arguments[0]) {
var listItem = document.createElement("listitem");
var checkCell = document.createElement("listcell");
checkCell.setAttribute("type", "checkbox");
checkCell.setAttribute("checked", true);
listItem.appendChild(checkCell);
var nameCell = document.createElement("listcell");
nameCell.setAttribute("label", migrator.title);
listItem.appendChild(nameCell);
listItem.setAttribute("type", "checkbox");
listItem.setAttribute("checked", true);
listItem.setAttribute("label", migrator.title);
listItem.migrator = migrator;
listbox.appendChild(listItem);
}
@ -100,8 +93,8 @@ var gMigrateWizard = {
// Get all the checked migrators into an array
var listbox = document.getElementById("datasource-list");
for (var i = listbox.childNodes.length-1; i >= 0; i--) {
LOG("Checking child node: " + listbox.childNodes[i].firstChild);
if (listbox.childNodes[i].firstChild.getAttribute("checked")) {
LOG("Checking child node: " + listbox.childNodes[i]);
if (listbox.childNodes[i].getAttribute("checked")) {
LOG("Adding migrator");
migrators.push(listbox.childNodes[i].migrator);
}

Просмотреть файл

@ -64,10 +64,6 @@
label="&migration.welcome;">
<description id="wizard-desc">&migration.list.description;</description>
<listbox id="datasource-list" flex="1">
<listcols>
<listcol/>
<listcol flex="1"/>
</listcols>
</listbox>
</wizardpage>