зеркало из https://github.com/mozilla/pjs.git
Bug 223336 Cannot perform search from sidebar
suggestion by zack-weg@gmx.de r=neil sr=bz a=asa
This commit is contained in:
Родитель
3616daea99
Коммит
0028b89402
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче