Skip to content

Commit 3f23602

Browse files
committed
Update JS style: use single quotes
1 parent 2d16ae3 commit 3f23602

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

sample/Archiving/static/js/host.js

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -26,36 +26,36 @@ session.on('streamCreated', function(event) {
2626

2727
session.on('archiveStarted', function(event) {
2828
archiveID = event.id;
29-
console.log("ARCHIVE STARTED");
30-
$(".start").hide();
31-
$(".stop").show();
29+
console.log('ARCHIVE STARTED');
30+
$('.start').hide();
31+
$('.stop').show();
3232
disableForm();
3333
});
3434

3535
session.on('archiveStopped', function(event) {
3636
archiveID = null;
37-
console.log("ARCHIVE STOPPED");
38-
$(".start").show();
39-
$(".stop").hide();
37+
console.log('ARCHIVE STOPPED');
38+
$('.start').show();
39+
$('.stop').hide();
4040
enableForm();
4141
});
4242

4343
$(document).ready(function() {
44-
$(".start").click(function (event) {
45-
var options = $(".archive-options").serialize();
44+
$('.start').click(function (event) {
45+
var options = $('.archive-options').serialize();
4646
disableForm();
47-
$.post("/start", options).fail(enableForm);
47+
$.post('/start', options).fail(enableForm);
4848
}).show();
49-
$(".stop").click(function(event){
50-
$.get("stop/" + archiveID);
49+
$('.stop').click(function(event){
50+
$.get('stop/' + archiveID);
5151
}).hide();
5252
});
5353

5454

5555
function disableForm() {
56-
$(".archive-options-fields").attr('disabled', 'disabled');
56+
$('.archive-options-fields').attr('disabled', 'disabled');
5757
}
5858

5959
function enableForm() {
60-
$(".archive-options-fields").removeAttr('disabled');
61-
}
60+
$('.archive-options-fields').removeAttr('disabled');
61+
}

0 commit comments

Comments
 (0)