Andrew Bauer
a67fb0bb16
eslint
2020-11-26 19:28:25 -06:00
Andrew Bauer
8d8054bc0f
deploy bstable to watch view
2020-11-26 17:00:05 -06:00
Isaac Connor
af9e279f9e
Rename StartTime, EndTime in Events to StartDateTime and EndDateTime
2020-11-04 13:55:27 -05:00
Andrew Bauer
824f38c746
hide settings buttons rather than disable for non Local monitors
2020-11-01 08:05:53 -06:00
Isaac Connor
90e81c5774
Merge branch 'release-1.34'
2020-10-23 09:34:35 -04:00
Isaac Connor
0e63874533
fix calling changeScale when scale is 0 instead of auto
2020-10-19 14:28:21 -04:00
Andrew Bauer
1ed160866b
add legacy watch view alarm buttons to toolbar
2020-10-16 15:47:42 -05:00
Andrew Bauer
f98a885ed5
update the watch view header
2020-10-16 08:08:23 -05:00
Andrew Bauer
f32a7aaff5
deploy insertModalHtml
2020-10-14 15:58:39 -05:00
Andrew Bauer
e5e1455f7a
replace embedded popuplinks in watch view
2020-10-12 13:26:20 -05:00
Isaac Connor
95b09ad182
Add samesite=strict to all Cookie setting
2020-10-07 11:26:18 -04:00
Andrew Bauer
b4d2fa5e75
replace inline onchange event
2020-10-03 21:14:24 -05:00
Andrew Bauer
65b6dad48c
eslint
2020-10-03 17:38:56 -05:00
Andrew Bauer
aee5430bc8
only load preset and settings modals when needed
2020-10-03 17:00:20 -05:00
Andrew Bauer
1643fb686b
convert settings popup to modal
2020-10-03 16:51:25 -05:00
Andrew Bauer
391ce88f05
eslint
2020-10-02 21:11:54 -05:00
Andrew Bauer
a97e526298
fix save button in controlpreset modal
2020-10-02 16:10:32 -05:00
Andrew Bauer
802e439cb5
convert controlpreset view to a modal
2020-10-02 15:46:28 -05:00
Romain ODDONE
dcb77cdaea
apply stream scale in zoom coordinates
2020-06-17 14:46:10 +02:00
Isaac Connor
02bf85bb34
Merge pull request #2950 from roddone/scale_to_fit_watchview
...
Fix the scale to fit option that is not persisted on page refresh
2020-06-02 12:53:50 -04:00
Romain ODDONE
a9c52a21ec
call to changeScale() on page init when "scale to fit" is selected
2020-06-02 17:25:07 +02:00
Isaac Connor
20870e22fa
fix eslint errors
2020-05-29 13:28:33 -04:00
Isaac Connor
edd718afd2
xtell and ytell are data-xtell and data-ytell fixes #2932
2020-05-13 08:02:49 -04:00
Isaac Connor
807efde523
xtell and ytell are data-xtell and data-ytell fixes #2932
2020-05-13 08:01:04 -04:00
Isaac Connor
289045500b
Don't use event as a variable name unless we are talking about window evnt. Change controlCmd to take the event and get the button from event.target
2020-05-01 13:03:35 -04:00
Isaac Connor
8d8d37c648
fix eslint
2020-05-01 09:57:46 -04:00
Isaac Connor
74ab2e2e12
Don't use event as a variable name unless we are talking about window evnt. Change controlCmd to take the event and get the button from event.target
2020-04-29 16:35:04 -04:00
Isaac Connor
25cd13f8ad
When sending eventCmdReq, pass eventCmdParms since it might have been updated.
2020-04-23 16:25:35 -04:00
Isaac Connor
da79f761ad
add monitorStreamReplayBuffer to javascript vars. Use it to determine whether to update fast forward and reverse buttons
2020-04-23 16:17:27 -04:00
Isaac Connor
908e892d48
Merge branch 'fix_auth_timeouts'
2020-04-23 16:15:30 -04:00
Isaac Connor
91b1d7bbeb
alter setButtonState to take either an id or an element so that we can log the missing element
2020-04-23 15:43:36 -04:00
Isaac Connor
a6f5ae2601
fix cyclePlay button not working. Move SetButtonState into skin.js
2020-04-23 15:42:30 -04:00
Isaac Connor
96774bd038
fix inline javascript in ptz buttons
2020-04-23 15:39:31 -04:00
Isaac Connor
74e5cc3066
eslint
2020-04-10 14:22:44 -04:00
Isaac Connor
365f0240ad
fix inline javascript in ptz buttons
2020-04-10 11:30:30 -04:00
Isaac Connor
5a20ef959f
Merge branch 'release-1.34'
2020-03-20 11:07:46 -04:00
Isaac Connor
ecaaae90f3
fix streamImg loading when using applet. Also don't alter actParms as it is not a global.
2020-03-20 11:06:01 -04:00
Isaac Connor
55f63e8e9d
Merge branch 'fix_auth_timeouts'
2020-03-04 11:22:08 -05:00
Isaac Connor
a9e3d0691f
quotes, fix status ajax call using old auth_hash
2020-03-04 11:17:48 -05:00
Isaac Connor
a2dd24ae1f
When sending eventCmdReq, pass eventCmdParms since it might have been updated.
2020-03-02 14:38:36 -05:00
Isaac Connor
00de49a5c1
add monitorStreamReplayBuffer to javascript vars. Use it to determine whether to update fast forward and reverse buttons
2020-03-02 12:43:07 -05:00
Isaac Connor
967e5ad30f
alter setButtonState to take either an id or an element so that we can log the missing element
2020-03-02 11:52:32 -05:00
Isaac Connor
dce4d17b51
fix cyclePlay button not working. Move SetButtonState into skin.js
2020-02-25 13:17:02 -05:00
Isaac Connor
a7c28be365
change scale to fit value from auto to 0
2020-02-25 12:14:34 -05:00
Andrew Bauer
f13a7199e1
fix eslint
2020-01-07 21:53:55 -06:00
Isaac Connor
c64de372a7
when auth_hash changes, update various CmdParms
2020-01-07 17:08:57 -05:00
Isaac Connor
6ac26ec1aa
quotes
2020-01-05 17:33:53 -05:00
Isaac Connor
e4265bd075
spaces
2019-09-26 16:13:49 -04:00
Isaac Connor
6c39fd133d
fix eslint
2019-09-20 10:44:38 -04:00
Isaac Connor
2da9edf0ff
add onchange to scale
2019-09-19 14:57:17 -04:00
Isaac Connor
a6a2239e5b
Fixes #2579 by putting the event Id into an attribute of the delete button. Also uses a button instead of a link. Also only does parent refresh if parent exists ( #2662 )
2019-07-24 11:39:21 -04:00
Isaac Connor
1241761683
Add a title popup telling people about the zoomin/out/pan functions. Add ctrl-click to zoomout
2019-06-11 10:58:54 -04:00
Matthew Noorenberghe
ac547e0d5d
Don't scroll to the top of the page when force/cancel alarm is clicked
2019-03-10 20:58:24 -07:00
Isaac Connor
675b4975b0
Fix control presets
2019-03-01 13:37:34 -05:00
Matt N
19c272061a
Replace MooTools usage for adding window event listeners ( #2429 )
2019-01-21 11:14:32 -05:00
Matt N
a1a42345e3
More eslint fixes; eslint in php; add eslint to travis ( #2419 )
...
* Add eslint to travis.yml
* Update eslint package versions and apply new indent rules
* Enable the brace-style and block-style eslint rules
* Enable the 'curly' eslint rule
* Enable the 'keyword-spacing' eslint rule
* Enable the 'key-spacing' eslint rule
* Enable the 'object-curly-spacing' eslint rule
* Enable the 'no-new-object' eslint rule
* Only disable the no-caller eslint rule in the one affected file
* Enable the 'no-unused-vars' eslint rule for local variables
* Add linting of JS in .php files
2019-01-19 10:32:40 -05:00
Matt N
deaf651aad
Fix eslint violations ( #2416 )
...
* Add more JS libraries to eslintignore
* eslint . --fix
Automatic fixes only
* frame.js: eslint fixes
* events.js: manual eslint fixes
* skin.js: manual eslint fixes
* watch.js: manual eslint fixes
* Remove some tabs used for indentation in JS
* state.js: Fix new-cap eslint violation
* Disable guard-for-in eslint rule to get everything passing
2019-01-18 10:00:55 -05:00
Isaac Connor
6128d2a4d9
fix #2317 by updating the url encoding of a filter to match events for that monitor
2018-11-23 15:34:23 -05:00
Isaac Connor
e7ec2faccd
monitorUrl now includes /zm/index.php so adding thisUrl generates an incorrect url
2018-10-18 20:33:50 -04:00
Isaac Connor
8608fc97be
fix trms=>terms
2018-09-10 15:11:57 -04:00
Isaac Connor
799b34eee8
handle xhr errors like when auth is no longer valid. Do a page refresh when this happens
2018-08-31 10:34:54 -04:00
Andrew Bauer
084f1ab1d6
Add missing reloadWebSite js function
...
Somehow this went missing when the new website monitor type was merged
2018-07-05 08:43:21 -05:00
Andrew Bauer
86b2f6a12e
New Monitor Type - Website ( #2065 )
...
* implement website monitor
* don't check certain fields when using website monitor
* continue to fix javascript errors for website monitors
* check $monitor, not $new_monitor here
* add website monitor documentation
was somehow left out of the initial commit
* fix corruption of functions.php
* add missing comma
* remove errors by testing for existence of key. If it's a new monitor, then none of the keys will be valid
* If the monitor type is WebSite, then default Status to Running.
* put back start function that got lost in merge. Don't start StreamCmd's if it's a WebSite
* Add midding comma
* Hide unrelated tabs when type is WebSite. Put back input fields for Type=WebSite
* Don't show control or any of the status fields for WebSite type monitors
* add some parenthesis to ensure order of operations, seems to fix fps and status fields not being shown for regular monitors
2018-04-26 17:18:36 -04:00
Isaac Connor
36b8cfb115
test element so that processing will continue if buton doesn't exist
2018-04-18 12:29:59 -04:00
Isaac Connor
a76fcb331c
Remove debugging. Treat can't get semaphore as a non-error
2018-01-29 08:25:46 -08:00
Isaac Connor
b793e6659b
add onFailure logger, and change link to chain so that responses don't just disappear
2018-01-29 07:32:02 -08:00
Isaac Connor
d001ce467e
use get for status JSON requests
2018-01-26 10:31:55 -05:00
Isaac Connor
b013da6b95
Fix ptz controls. Something has changed in the way the Event object works, but we don't actually need it.
2018-01-11 13:14:11 -05:00
digital-gnome
0743a283da
Remove back/close if opened in new tab
2017-12-13 12:34:31 -05:00
digital-gnome
e0c2061954
Fix back if window is opened in new tab.
2017-12-13 10:20:02 -05:00
digital-gnome
34b708bace
Handle popups that should remain popups
2017-12-05 09:40:03 -05:00
digital-gnome
55699a9b9b
Change scaleToFit to choose what to fit
...
Adds 4th input to choose what element is the last thing to fit.
2017-11-26 19:08:06 -05:00
digital-gnome
68e54400e2
Add scaleToFit to watch view
2017-11-26 19:08:06 -05:00
Isaac Connor
7cb4090d7d
can't use jquery like that
2017-08-03 12:41:43 -04:00
Isaac Connor
1e21beb1cd
use instead of document.getElementById
2017-07-05 14:25:44 -04:00
Isaac Connor
0e643f0f93
Merge branch 'master' into storageareas
2017-05-30 11:58:38 -04:00
Isaac Connor
59d00b20b1
fix fetchImage
2017-05-30 11:35:52 -04:00
Isaac Connor
f88abfcb4d
the liveStream element now has the monitorId appended to it, to be consistent with montage so we can reuse code
2017-05-30 11:26:57 -04:00
Isaac Connor
4763ace165
Merge branch 'master' into storageareas
2017-05-18 14:24:09 -04:00
Isaac Connor
d1c61a252f
fix whitspace/braces
2017-05-18 13:50:56 -04:00
Isaac Connor
3ec4e1bfe7
fix merge
2017-05-18 12:59:09 -04:00
Isaac Connor
fd44ff4e60
Merge branch 'master' into storageareas
2017-05-10 13:16:08 -04:00
Isaac Connor
cb99d709c5
add debug
2017-05-05 16:37:12 -04:00
Isaac Connor
64193c3368
turn status ajax calls to gets instead of posts
2017-05-05 16:18:12 -04:00
Isaac Connor
3b6cf74ed3
add auth_hash to ajax calls
2017-05-05 11:53:40 -04:00
Matthew Noorenberghe
c7955cd1b6
Add eslint configuration files extending Google's rules
2017-03-18 00:02:17 -07:00
Kyle Johnson
8c41781a9f
Fix event.stop error in watch.js See #1672 ( #1678 )
2016-11-08 18:53:06 -05:00
Isaac Connor
4b3ac63a68
merge master, deprecate qqq()
2016-11-08 11:30:44 -05:00
Kyle Johnson
735d2df3c9
event is redefined before being passed to deleteEvent. Fixes #1671
2016-11-04 23:23:40 -06:00
Isaac Connor
6c3a3d3d50
store the scale value for watch and event views in a cookie, differentiated by monitorId.
2016-09-27 09:46:04 -04:00
Isaac Connor
6840031ee3
fix auth timeout and user session[username] when checking auth hash for speedup
2016-09-27 11:51:55 -04:00
Isaac Connor
e04266600e
Merge branch 'fix_auth_timeout' into storageareas
2016-09-27 11:04:12 -04:00
Isaac Connor
4ce531099c
add an auth field to request=stream results to give the client a new auth hash to use
2016-09-27 11:03:12 -04:00
Isaac Connor
167214cb01
Merge branch 'cookie_scale' into storageareas
2016-09-27 10:05:16 -04:00
Isaac Connor
ddb7398017
fix scaling because the livestream has the monitorId appended to it now
2016-08-31 13:26:53 -04:00
Isaac Connor
f35fe185fb
the liveStream div now has the monitorId appended to it, so add that when we lookup the livestream and put a new rand on it to force a reload
2016-08-31 12:53:34 -04:00
Isaac Connor
1d1cedce95
use rand mofification like when re-establishing the stream instead of an Time(). Drop use of a tempImage as it doesn't seem to be used anywhere. Cleanup use of streamSrc. Introduce a function getStreamMode
2016-06-20 12:40:33 -04:00
Andrew Bauer
a0e6c004a2
Merge pull request #1388 from ZoneMinder/reload_stream_on_error
...
try to reload the image stream on error.
2016-04-04 20:57:48 -05:00
Isaac Connor
6c92c0e3f7
Merge branch 'reload_stream_on_scale' into storageareas
2016-04-04 16:13:35 -04:00
Isaac Connor
123a1a898a
try to reload the image stream on error.
2016-04-04 15:04:09 -04:00