Merge pull request '[pdf] Fix bug #79061' (#1756) from fix/bug-79061 into hotfix/v9.2.1

Reviewed-on: https://git.onlyoffice.com/ONLYOFFICE/sdkjs/pulls/1756
This commit is contained in:
Oleg Korshul
2025-12-12 11:41:34 +00:00

View File

@ -1168,6 +1168,11 @@ var CPresentation = CPresentation || function(){};
};
CPDFDoc.prototype.SetNeedUpdateSearch = function(bUpdate) {
this.needUpdateSearch = bUpdate;
if (bUpdate && this.SearchEngine.TextAroundTimer != null) {
clearTimeout(this.SearchEngine.TextAroundTimer);
this.SearchEngine.TextAroundTimer = null;
}
};
CPDFDoc.prototype.IsNeedUpdateSearch = function() {
return this.needUpdateSearch;