Added multiple term search functionality (with default phrase search)
This commit is contained in:
parent
7ac48ef4d5
commit
0a347ec04d
7 changed files with 154 additions and 16 deletions
|
@ -194,6 +194,13 @@ var PDFLinkService = (function () {
|
|||
setHash: function PDFLinkService_setHash(hash) {
|
||||
if (hash.indexOf('=') >= 0) {
|
||||
var params = parseQueryString(hash);
|
||||
if ('search' in params) {
|
||||
this.eventBus.dispatch('findfromurlhash', {
|
||||
source: this,
|
||||
query: params['search'].replace(/"/g, ''),
|
||||
phraseSearch: (params['phrase'] === 'true')
|
||||
});
|
||||
}
|
||||
// borrowing syntax from "Parameters for Opening PDF Files"
|
||||
if ('nameddest' in params) {
|
||||
if (this.pdfHistory) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue