disable listen in
This commit is contained in:
parent
22d52a73e8
commit
196f5fd009
|
|
@ -66,13 +66,19 @@
|
|||
var $parent = $listenLink.closest('.action-links');
|
||||
var $listenText = $('.listen-link-text', $parent);
|
||||
var $listenDetails = $('.listen-link-details', $parent);
|
||||
if($listenLink.data('listenbroadcast-playstate') == 'playing') {
|
||||
$listenText.text('Listen')
|
||||
$listenDetails.removeClass('statusing')
|
||||
stopPlay($listenLink);
|
||||
|
||||
if (true) {
|
||||
context.JK.Banner.showAlert('Disabled Due to High Demand', 'JamKazam has been under very high demand recently.<br/><br/>This feature is disabled while we scale up the backend servers and technology.')
|
||||
}
|
||||
else {
|
||||
startPlay($listenLink);
|
||||
if ($listenLink.data('listenbroadcast-playstate') == 'playing') {
|
||||
$listenText.text('Listen')
|
||||
$listenDetails.removeClass('statusing')
|
||||
stopPlay($listenLink);
|
||||
}
|
||||
else {
|
||||
startPlay($listenLink);
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue