Bug 228962 - Save text when switching between input modes.

ChatZilla only.
r=samuel
This commit is contained in:
silver%warwickcompsoc.co.uk 2005-11-19 22:29:47 +00:00
Родитель cc59221a10
Коммит 481c848adb
1 изменённых файлов: 2 добавлений и 0 удалений

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

@ -2379,6 +2379,7 @@ function multilineInputMode (state)
multiInputBox.setAttribute ("collapsed", "false");
// multiInput should have the same direction as singleInput
multiInput.setAttribute("dir", singleInput.getAttribute("dir"));
multiInput.value = (client.input ? client.input.value : "");
client.input = multiInput;
}
else /* turn off multiline input mode */
@ -2392,6 +2393,7 @@ function multilineInputMode (state)
singleInputBox.setAttribute ("collapsed", "false");
// singleInput should have the same direction as multiInput
singleInput.setAttribute("dir", multiInput.getAttribute("dir"));
singleInput.value = (client.input ? client.input.value : "");
client.input = singleInput;
}