зеркало из 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:
Родитель
0f2ff8dec2
Коммит
c445fdfa6a
|
@ -127,7 +127,7 @@ function rememberSearchText(target)
|
|||
target = target.QueryInterface(nsIRDFLiteral).Value;
|
||||
if (target) {
|
||||
// convert plusses (+) back to spaces
|
||||
target = target.replace(/+/g, " ");
|
||||
target = target.replace(/\+/g, " ");
|
||||
var textNode = document.getElementById("sidebar-search-text");
|
||||
|
||||
if (target != textNode.value) {
|
||||
|
@ -477,7 +477,7 @@ function haveSearchResults()
|
|||
target = target.QueryInterface(nsIRDFLiteral).Value;
|
||||
if (target) {
|
||||
// convert plusses (+) back to spaces
|
||||
target = target.replace(/+/g, " ");
|
||||
target = target.replace(/\+/g, " ");
|
||||
var textNode = document.getElementById("sidebar-search-text");
|
||||
textNode.value = unescape(target);
|
||||
return true;
|
||||
|
@ -914,7 +914,7 @@ function saveSearch()
|
|||
target = target.QueryInterface(nsIRDFLiteral).Value;
|
||||
if (target) {
|
||||
// convert plusses (+) back to spaces
|
||||
target = target.replace(/+/g, " ");
|
||||
target = target.replace(/\+/g, " ");
|
||||
lastSearchText = unescape(target);
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче