|
|
@@ -181,7 +181,7 @@ var Status = {
|
|
181
|
181
|
AVAILABLE: "available",
|
|
182
|
182
|
UNAVAILABLE: "unavailable",
|
|
183
|
183
|
PENDING: "pending"
|
|
184
|
|
-}
|
|
|
184
|
+};
|
|
185
|
185
|
|
|
186
|
186
|
var Recording = {
|
|
187
|
187
|
/**
|
|
|
@@ -297,8 +297,8 @@ var Recording = {
|
|
297
|
297
|
|
|
298
|
298
|
// We don't want to do any changes if this is
|
|
299
|
299
|
// an availability change.
|
|
300
|
|
- if (this.currentState === Status.AVAILABLE
|
|
301
|
|
- || this.currentState === Status.UNAVAILABLE)
|
|
|
300
|
+ if (this.currentState !== Status.ON
|
|
|
301
|
+ && this.currentState !== Status.PENDING)
|
|
302
|
302
|
return;
|
|
303
|
303
|
|
|
304
|
304
|
buttonSelector.removeClass(this.baseClass + " active");
|
|
|
@@ -333,7 +333,9 @@ var Recording = {
|
|
333
|
333
|
|
|
334
|
334
|
this.currentState = recordingState;
|
|
335
|
335
|
|
|
336
|
|
- if (!labelSelector.is(":visible"))
|
|
|
336
|
+ // We don't show the label for available state.
|
|
|
337
|
+ if (recordingState !== Status.AVAILABLE
|
|
|
338
|
+ && !labelSelector.is(":visible"))
|
|
337
|
339
|
labelSelector.css({display: "inline-block"});
|
|
338
|
340
|
},
|
|
339
|
341
|
// checks whether recording is enabled and whether we have params
|