-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #673 from bluecherrydvr/feature/645-test-camera-au…
…thenication Feature/645 Test devices authentication
- Loading branch information
Showing
7 changed files
with
99 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
$(function() { | ||
}); | ||
function testCameraConnection(form, msg) { | ||
let data = JSON.parse(msg.data[0]); | ||
|
||
$('#connStat').find('form').show(); | ||
if(data.success) | ||
$('#connStat').removeClass().addClass('alert alert-success').find('span').html(msg.data[1]); | ||
else | ||
$('#connStat').removeClass().addClass('alert alert-danger').find('span').html(msg.data[1]); | ||
} | ||
|
||
function testCameraLoadingHeader(form, msg) { | ||
$('#connStat').removeClass().addClass('alert alert-warning').find('span').html('Testing...'); | ||
$('#connStat').find('form').hide(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters