Merge pull request #12251 from DesWurstes/master
Return the query with the findcontrolstate
This commit is contained in:
		
						commit
						2e95d08f12
					
				@ -2438,12 +2438,18 @@ function webViewerUpdateFindMatchesCount({ matchesCount }) {
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
function webViewerUpdateFindControlState({ state, previous, matchesCount }) {
 | 
			
		||||
function webViewerUpdateFindControlState({
 | 
			
		||||
  state,
 | 
			
		||||
  previous,
 | 
			
		||||
  matchesCount,
 | 
			
		||||
  rawQuery,
 | 
			
		||||
}) {
 | 
			
		||||
  if (PDFViewerApplication.supportsIntegratedFind) {
 | 
			
		||||
    PDFViewerApplication.externalServices.updateFindControlState({
 | 
			
		||||
      result: state,
 | 
			
		||||
      findPrevious: previous,
 | 
			
		||||
      matchesCount,
 | 
			
		||||
      rawQuery,
 | 
			
		||||
    });
 | 
			
		||||
  } else {
 | 
			
		||||
    PDFViewerApplication.findBar.updateUIState(state, previous, matchesCount);
 | 
			
		||||
 | 
			
		||||
@ -736,6 +736,7 @@ class PDFFindController {
 | 
			
		||||
      state,
 | 
			
		||||
      previous,
 | 
			
		||||
      matchesCount: this._requestMatchesCount(),
 | 
			
		||||
      rawQuery: this._state ? this._state.query : null,
 | 
			
		||||
    });
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user