disable listen in

This commit is contained in:
Seth Call 2020-03-26 15:12:49 -05:00
parent 22d52a73e8
commit 196f5fd009
1 changed files with 11 additions and 5 deletions

View File

@ -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;
}