Fixing a minor problem with the last patch I checked in. r=timeless

This commit is contained in:
blakeross%telocity.com 2000-12-25 23:57:57 +00:00
Родитель d0104aa87f
Коммит d49fa23d8e
1 изменённых файлов: 4 добавлений и 10 удалений

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

@ -60,17 +60,11 @@ function onLoad()
doSetOKCancel(open, 0, 0, 0);
dialog.input.focus();
if (pref) {
try {
dialog.input.value = pref.CopyUnicharPref("general.open_location.last_url");
// Select contents of input field
// XXX should probably be done automatically
dialog.input.select();
} catch (ex) {
// the pref was probably empty
// give up and just set focus to the field
dialog.input.focus();
}
dialog.input.value = pref.CopyUnicharPref("general.open_location.last_url");
if (dialog.input.value)
dialog.input.select(); // XXX should probably be done automatically
}
doEnabling();