Bug 223336 Cannot perform search from sidebar

suggestion by zack-weg@gmx.de r=neil sr=bz a=asa
This commit is contained in:
timeless%mozdev.org 2003-10-27 22:26:31 +00:00
Родитель 3616daea99
Коммит 0028b89402
1 изменённых файлов: 3 добавлений и 3 удалений

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

@ -127,7 +127,7 @@ function rememberSearchText(target)
target = target.QueryInterface(nsIRDFLiteral).Value; target = target.QueryInterface(nsIRDFLiteral).Value;
if (target) { if (target) {
// convert plusses (+) back to spaces // convert plusses (+) back to spaces
target = target.replace(/+/g, " "); target = target.replace(/\+/g, " ");
var textNode = document.getElementById("sidebar-search-text"); var textNode = document.getElementById("sidebar-search-text");
if (target != textNode.value) { if (target != textNode.value) {
@ -477,7 +477,7 @@ function haveSearchResults()
target = target.QueryInterface(nsIRDFLiteral).Value; target = target.QueryInterface(nsIRDFLiteral).Value;
if (target) { if (target) {
// convert plusses (+) back to spaces // convert plusses (+) back to spaces
target = target.replace(/+/g, " "); target = target.replace(/\+/g, " ");
var textNode = document.getElementById("sidebar-search-text"); var textNode = document.getElementById("sidebar-search-text");
textNode.value = unescape(target); textNode.value = unescape(target);
return true; return true;
@ -914,7 +914,7 @@ function saveSearch()
target = target.QueryInterface(nsIRDFLiteral).Value; target = target.QueryInterface(nsIRDFLiteral).Value;
if (target) { if (target) {
// convert plusses (+) back to spaces // convert plusses (+) back to spaces
target = target.replace(/+/g, " "); target = target.replace(/\+/g, " ");
lastSearchText = unescape(target); lastSearchText = unescape(target);
} }
} }