зеркало из https://github.com/mozilla/gecko-dev.git
Re-work some of the JavaScript for prefs so that Mozilla just "does the right thing."
This commit is contained in:
Родитель
077f42dcfd
Коммит
46a51b8158
|
@ -1115,7 +1115,16 @@ function makeBoolPrefHTML(d, nm, vrbl)
|
|||
if (vrbl == true) {
|
||||
d.write('checked ');
|
||||
}
|
||||
d.write('onClick="top.' + nm + ' = checked;"></td>');
|
||||
d.write('onClick="top.togglePrefBool(' + nm + ');"></td>');
|
||||
}
|
||||
|
||||
function togglePrefBool(nm, newVal)
|
||||
{
|
||||
if (top[nm.name]) {
|
||||
top[nm.name] = false;
|
||||
} else {
|
||||
top[nm.name] = true;
|
||||
}
|
||||
}
|
||||
|
||||
// makes the default email cert selected
|
||||
|
|
Загрузка…
Ссылка в новой задаче