CC-3503 : Preserve the state of "Now Playing" screen - whether Library section is open or not
This commit is contained in:
parent
fe21abf16d
commit
aca6e995dd
2 changed files with 18 additions and 23 deletions
|
@ -92,6 +92,15 @@ class ShowbuilderController extends Zend_Controller_Action
|
|||
}
|
||||
}
|
||||
|
||||
$data = Application_Model_Preference::GetValue("nowplaying_screen", true);
|
||||
if ($data != "") {
|
||||
$settings = unserialize($data);
|
||||
|
||||
if ($settings["library"] == "true") {
|
||||
$this->view->headScript()->appendScript("AIRTIME.showLib = true;");
|
||||
}
|
||||
}
|
||||
|
||||
$this->_helper->actionStack('library', 'library');
|
||||
$this->_helper->actionStack('builder', 'showbuilder');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue