|
|
@@ -923,14 +923,14 @@ function toggleRecording() {
|
|
923
|
923
|
}
|
|
924
|
924
|
|
|
925
|
925
|
var oldState = focus.recordingEnabled;
|
|
926
|
|
- buttonClick("#recordButton", "icon-recEnable icon-recDisable");
|
|
|
926
|
+ $('#recordButton').toggleClass('active');
|
|
927
|
927
|
focus.setRecording(!oldState,
|
|
928
|
928
|
recordingToken,
|
|
929
|
929
|
function (state) {
|
|
930
|
930
|
console.log("New recording state: ", state);
|
|
931
|
931
|
if (state == oldState) //failed to change, reset the token because it might have been wrong
|
|
932
|
932
|
{
|
|
933
|
|
- buttonClick("#recordButton", "icon-recEnable icon-recDisable");
|
|
|
933
|
+ $('#recordButton').toggleClass('active');
|
|
934
|
934
|
setRecordingToken(null);
|
|
935
|
935
|
}
|
|
936
|
936
|
}
|