mirror of
https://github.com/rust-unofficial/patterns
synced 2024-11-10 13:10:30 +00:00
deploy: 40d26477a7
This commit is contained in:
parent
0898c0f000
commit
6cd4a938a4
@ -296,7 +296,7 @@ window.search = window.search || {};
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (url.params.hasOwnProperty(URL_MARK_PARAM)) {
|
if (url.params.hasOwnProperty(URL_MARK_PARAM)) {
|
||||||
var words = url.params[URL_MARK_PARAM].split(' ');
|
var words = decodeURIComponent(url.params[URL_MARK_PARAM]).split(' ');
|
||||||
marker.mark(words, {
|
marker.mark(words, {
|
||||||
exclude: mark_exclude
|
exclude: mark_exclude
|
||||||
});
|
});
|
||||||
@ -427,6 +427,7 @@ window.search = window.search || {};
|
|||||||
delete url.params[URL_MARK_PARAM];
|
delete url.params[URL_MARK_PARAM];
|
||||||
url.hash = "";
|
url.hash = "";
|
||||||
} else {
|
} else {
|
||||||
|
delete url.params[URL_MARK_PARAM];
|
||||||
delete url.params[URL_SEARCH_PARAM];
|
delete url.params[URL_SEARCH_PARAM];
|
||||||
}
|
}
|
||||||
// A new search will also add a new history item, so the user can go back
|
// A new search will also add a new history item, so the user can go back
|
||||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user