Fix button not updating when generating a BAR url

This commit is contained in:
yflory 2020-01-09 17:47:10 +01:00
parent 1bf48a5a8c
commit a3b3a9e4fb
1 changed files with 1 additions and 1 deletions

View File

@ -1383,7 +1383,7 @@ define([
embed: Util.isChecked($link.find('#cp-share-embed'))
}));
// Hide or show the burn after reading alert
if (Util.isChecked($rights.find('#cp-share-bar'))) {
if (Util.isChecked($rights.find('#cp-share-bar')) && !burnAfterReadingUrl) {
$('.cp-alertify-bar-selected').show();
// Show burn after reading button
$('.alertify').find('.cp-bar').show();