CC-2753: Ability to disable stream 1 but still show it in the interface
- interface change - all elements becomes 'disabled' depending on 'disable_stream_conf' flag
This commit is contained in:
parent
0c72b8b6bf
commit
fa929d45a6
5 changed files with 56 additions and 0 deletions
|
@ -20,6 +20,9 @@ class Application_Form_StreamSetting extends Zend_Form
|
|||
->setRequired(false)
|
||||
->setValue(($setting['output_sound_device'] == "true")?1:0)
|
||||
->setDecorators(array('ViewHelper'));
|
||||
if(Application_Model_Preference::GetDisableStreamConf() == "true"){
|
||||
$output_sound_device->setAttrib("readonly", true);
|
||||
}
|
||||
$this->addElement($output_sound_device);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue