mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-07 16:37:02 +03:00
fix: nextcloud iFrame mode: click on unified search result opens inner iFrame
This commit is contained in:
parent
15e59ef65f
commit
d5965bf1d7
2 changed files with 12 additions and 5 deletions
|
|
@ -141,3 +141,10 @@ function SnappyMailFormHelper(oForm)
|
||||||
console.error(e);
|
console.error(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
addEventListener('hashchange', (event) => {
|
||||||
|
const search = event.newURL.substring(event.newURL.lastIndexOf('/') + 1);
|
||||||
|
if (search && search.length < 25) {
|
||||||
|
document.getElementById('rliframe').contentWindow.rl.app.messageList.mainSearch(search);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
|
||||||
|
|
@ -91,12 +91,12 @@ class Provider implements IProvider
|
||||||
$MessageCollection = $oMailClient->MessageList($oParams);
|
$MessageCollection = $oMailClient->MessageList($oParams);
|
||||||
|
|
||||||
$baseURL = $this->urlGenerator->linkToRoute('snappymail.page.index');
|
$baseURL = $this->urlGenerator->linkToRoute('snappymail.page.index');
|
||||||
$config = \OC::$server->getConfig();
|
// $config = \OC::$server->getConfig();
|
||||||
if ($config->getAppValue('snappymail', 'snappymail-no-embed')) {
|
// if ($config->getAppValue('snappymail', 'snappymail-no-embed')) {
|
||||||
$baseURL .= '?target=';
|
// $baseURL .= '?target=';
|
||||||
} else {
|
// } else {
|
||||||
$baseURL .= '#';
|
$baseURL .= '#';
|
||||||
}
|
// }
|
||||||
$search = \rawurlencode($oParams->sSearch);
|
$search = \rawurlencode($oParams->sSearch);
|
||||||
|
|
||||||
// $MessageCollection->totalEmails;
|
// $MessageCollection->totalEmails;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue