clean up state a bit, use 1 less call to daemon check by using global . When selecting a layout, set img width to 100%
This commit is contained in:
parent
0adc14da4e
commit
22e957ba46
|
@ -285,4 +285,16 @@ function getNavBarHTML() {
|
||||||
<?php
|
<?php
|
||||||
return( ob_get_clean() );
|
return( ob_get_clean() );
|
||||||
} // end function getNavBarHTML()
|
} // end function getNavBarHTML()
|
||||||
|
function xhtmlFooter() {
|
||||||
|
global $skin;
|
||||||
|
if ( canEdit('System') ) {
|
||||||
|
include("skins/$skin/views/state.php");
|
||||||
|
?>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</body></html>
|
||||||
|
<?php
|
||||||
|
} // end xhtmlFooter
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -290,11 +290,5 @@ for( $monitor_i = 0; $monitor_i < count($displayMonitors); $monitor_i += 1 ) {
|
||||||
</tfoot>
|
</tfoot>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
<?php
|
<?php xhtmlFooter() ?>
|
||||||
if ( canEdit('System') ) {
|
|
||||||
include("skins/$skin/views/state.php");
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
|
|
|
@ -405,5 +405,4 @@ if ( canEdit( 'Events' ) ) {
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
<?php xhtmlFooter() ?>
|
||||||
</html>
|
|
||||||
|
|
|
@ -130,7 +130,7 @@ function selectLayout( element ) {
|
||||||
} else if ( streamImg.nodeName == 'APPLET' || streamImg.nodeName == 'OBJECT' ) {
|
} else if ( streamImg.nodeName == 'APPLET' || streamImg.nodeName == 'OBJECT' ) {
|
||||||
// APPLET's and OBJECTS need to be re-initialized
|
// APPLET's and OBJECTS need to be re-initialized
|
||||||
}
|
}
|
||||||
streamImg.style.width = '';
|
streamImg.style.width = '100%';
|
||||||
}
|
}
|
||||||
var zonesSVG = $('zones'+monitor.id);
|
var zonesSVG = $('zones'+monitor.id);
|
||||||
if ( zonesSVG ) {
|
if ( zonesSVG ) {
|
||||||
|
|
|
@ -40,7 +40,8 @@ if ( !canEdit( 'System' ) ) {
|
||||||
<label for="runState" class="col-sm-3 control-label">Change State</label>
|
<label for="runState" class="col-sm-3 control-label">Change State</label>
|
||||||
<div class="col-sm-9">
|
<div class="col-sm-9">
|
||||||
<select id="runState" name="runState" class="form-control">
|
<select id="runState" name="runState" class="form-control">
|
||||||
<?php if ( daemonCheck() ) { ?>
|
<?php
|
||||||
|
if ( $running ) { ?>
|
||||||
<option value="stop" selected="selected"><?php echo translate('Stop') ?></option>
|
<option value="stop" selected="selected"><?php echo translate('Stop') ?></option>
|
||||||
<option value="restart"><?php echo translate('Restart') ?></option>
|
<option value="restart"><?php echo translate('Restart') ?></option>
|
||||||
<?php } else { ?>
|
<?php } else { ?>
|
||||||
|
|
Loading…
Reference in New Issue