Attempt at solving wrong window going to front on event window.

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1990 e3e1d417-86f3-4887-817a-d78f3d33393f
pull/27/merge
stan 2006-05-24 13:42:41 +00:00
parent 8b01ebc8a4
commit cb838481d8
2 changed files with 4 additions and 2 deletions

View File

@ -76,7 +76,6 @@ function closeWindow()
var filterWindow = window.open( "<?= $PHP_SELF ?>?view=none", 'zmFilter', 'width=1,height=1' );
filterWindow.close();
}
window.focus();
<?php
if ( isset($filter) )
{
@ -489,6 +488,9 @@ function viewEvents( form, name )
<?php } ?>
</table></center>
</form>
<script type="text/javascript">
window.setTimeout( "window.focus()", 500 );
</script>
</body>
</html>
<?php

View File

@ -155,6 +155,7 @@ if ( empty($sort_field) )
<title><?= ZM_WEB_TITLE_PREFIX ?> - <?= $zmSlangEventFilter ?></title>
<link rel="stylesheet" href="zm_html_styles.css" type="text/css">
<script type="text/javascript">
window.focus();
function newWindow(Url,Name,Width,Height)
{
var Win = window.open(Url,Name,"resizable,scrollbars,width="+Width+",height="+Height);
@ -258,7 +259,6 @@ function delTerm( form, line )
form.subaction.value = line;
form.submit();
}
window.focus();
</script>
</head>
<body>