Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff -Naur '--exclude=*montage*' ./views/js/watch.js ./views_patched/js/watch.js
- --- ./views/js/watch.js 2018-04-15 01:29:47.650388424 -0700
- +++ ./views_patched/js/watch.js 2018-04-15 01:57:51.010680595 -0700
- @@ -83,8 +83,15 @@
- }
- if ( POPUP_ON_ALARM )
- {
- - window.focus();
- - }
- + if (navigator.userAgent.indexOf('Chrome/') > 0) {
- + if (window.detwin) {
- + window.detwin.close();
- + window.detwin = null;
- + }
- + }
- + window.detwin = window.open('?view=events&page=1&filter[terms][0][attr]=DateTime&filter[terms][0][op]=%3E%3D&filter[terms][0][val]=-1+minute', 'ALARM RAISED', '...');
- + window.detwin.focus();
- + }
- }
- if ( SOUND_ON_ALARM )
- {
- diff -Naur '--exclude=*montage*' ./views/watch.php ./views_patched/watch.php
- --- ./views/watch.php 2018-04-15 01:30:35.896645337 -0700
- +++ ./views_patched/watch.php 2018-04-15 01:32:55.608431844 -0700
- @@ -77,6 +77,7 @@
- xhtmlHeaders( __FILE__, $monitor->Name()." - ".translate('Feed') );
- ?>
- +<meta http-equiv="refresh" content="60" >
- <body>
- <div id="page">
- <div id="content">
- @@ -240,5 +241,6 @@
- ?>
- </div>
- </div>
- +
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement