new tabs opened by selection search from the context menu never became children of the current tab
This commit is contained in:
parent
f3915ced9f
commit
f48c5744bd
@ -514,6 +514,19 @@ var TreeStyleTabService = {
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if ('BrowserSearch' in window &&
|
||||||
|
'loadSearch' in BrowserSearch) {
|
||||||
|
eval('BrowserSearch.loadSearch = '+
|
||||||
|
BrowserSearch.loadSearch.toSource().replace(
|
||||||
|
'if (useNewTab) {',
|
||||||
|
<![CDATA[$&
|
||||||
|
if (TreeStyleTabService.shouldOpenSearchResultAsChild(arguments[0]))
|
||||||
|
TreeStyleTabService.readyToOpenChildTab();
|
||||||
|
]]>
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
this._splitFunctionNames(<![CDATA[
|
this._splitFunctionNames(<![CDATA[
|
||||||
window.duplicateTab.handleLinkClick
|
window.duplicateTab.handleLinkClick
|
||||||
window.__treestyletab__highlander__origHandleLinkClick
|
window.__treestyletab__highlander__origHandleLinkClick
|
||||||
|
Loading…
x
Reference in New Issue
Block a user