Made console view sized according to number of monitors.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1276 e3e1d417-86f3-4887-817a-d78f3d33393fpull/27/merge
parent
a9b983dce5
commit
c758029bbf
|
@ -152,7 +152,7 @@ function loadConfig()
|
|||
|
||||
// Javascript window sizes
|
||||
$jws = array(
|
||||
'console' => array( 'w'=>720, 'h'=>540 ),
|
||||
'console' => array( 'w'=>720, 'h'=>312 ),
|
||||
'state' => array( 'w'=>300, 'h'=>120 ),
|
||||
'version' => array( 'w'=>320, 'h'=>140 ),
|
||||
'cycle' => array( 'w'=>16, 'h'=>32 ),
|
||||
|
|
|
@ -92,7 +92,7 @@ $montage_height = ZM_WEB_MONTAGE_HEIGHT?ZM_WEB_MONTAGE_HEIGHT:$max_height;
|
|||
<link rel="shortcut icon" href="favicon.ico">
|
||||
<link rel="icon" type="image/ico" href="favicon.ico">
|
||||
<script type="text/javascript">
|
||||
window.resizeTo( <?= $jws['console']['w'] ?>, <?= $jws['console']['h'] ?> );
|
||||
window.resizeTo( <?= $jws['console']['w'] ?>, <?= $jws['console']['h']+(25*(count($monitors)>6?count($monitors):6)) ?> );
|
||||
function newWindow(Url,Name,Width,Height)
|
||||
{
|
||||
var Name = window.open(Url,Name,"resizable,width="+Width+",height="+Height);
|
||||
|
|
Loading…
Reference in New Issue