mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
refresh header by new title if current page is active
This commit is contained in:
parent
78029264db
commit
aa3de2980c
2 changed files with 38 additions and 1 deletions
|
|
@ -184,6 +184,15 @@ class Page
|
|||
$connection->getTooltip()
|
||||
);
|
||||
|
||||
// Refresh header by new title if current page is active
|
||||
if ($this == $this->container->tab->getPage())
|
||||
{
|
||||
$this->container->browser->header->setTitle(
|
||||
$this->title->getValue(),
|
||||
$this->title->getSubtitle()
|
||||
);
|
||||
}
|
||||
|
||||
// Show response form
|
||||
$this->response->show(
|
||||
$request['placeholder'],
|
||||
|
|
@ -209,6 +218,15 @@ class Page
|
|||
$connection->getTooltip()
|
||||
);
|
||||
|
||||
// Refresh header by new title if current page is active
|
||||
if ($this == $this->container->tab->getPage())
|
||||
{
|
||||
$this->container->browser->header->setTitle(
|
||||
$this->title->getValue(),
|
||||
$this->title->getSubtitle()
|
||||
);
|
||||
}
|
||||
|
||||
// Update content
|
||||
$this->content->set(
|
||||
$connection->getMime(),
|
||||
|
|
@ -233,6 +251,14 @@ class Page
|
|||
_('Timeout')
|
||||
);
|
||||
|
||||
// Refresh header by new title if current page is active
|
||||
if ($this == $this->container->tab->getPage())
|
||||
{
|
||||
$this->container->browser->header->setTitle(
|
||||
$this->title->getValue()
|
||||
);
|
||||
}
|
||||
|
||||
// Update content
|
||||
$this->content->set(
|
||||
Filesystem::MIME_TEXT_PLAIN,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue