mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-08-23 21:45:03 -04:00
moving remaining time / for your eyes only message from nav bar into
status alert in bootstrap theme, to ensure it is seen even with a collapsed nav bar as in the mobile view
This commit is contained in:
parent
428a9d9c41
commit
9dde7f034a
2 changed files with 15 additions and 10 deletions
|
@ -553,7 +553,8 @@ $(function() {
|
|||
}
|
||||
}
|
||||
|
||||
// Display paste expiration.
|
||||
// Display paste expiration / for your eyes only.
|
||||
var content = this.remainingTime.contents();
|
||||
if (comments[0].meta.expire_date)
|
||||
{
|
||||
var expiration = helper.secondsToHuman(comments[0].meta.remaining_time),
|
||||
|
@ -561,9 +562,9 @@ $(function() {
|
|||
'This document will expire in %d ' + expiration[1] + '.',
|
||||
'This document will expire in %d ' + expiration[1] + 's.'
|
||||
];
|
||||
content[content.length - 1].nodeValue = ' ' + i18n._(expirationLabel, expiration[0]);
|
||||
this.remainingTime.removeClass('foryoureyesonly')
|
||||
.text(i18n._(expirationLabel, expiration[0]))
|
||||
.removeClass('hidden');
|
||||
.removeClass('hidden');
|
||||
}
|
||||
if (comments[0].meta.burnafterreading)
|
||||
{
|
||||
|
@ -571,9 +572,11 @@ $(function() {
|
|||
.fail(function() {
|
||||
zerobin.showError(i18n._('Could not delete the paste, it was not stored in burn after reading mode.'));
|
||||
});
|
||||
content[content.length - 1].nodeValue = ' ' + i18n._(
|
||||
'FOR YOUR EYES ONLY. Don\'t close this window, this message can\'t be displayed again.'
|
||||
);
|
||||
this.remainingTime.addClass('foryoureyesonly')
|
||||
.text(i18n._('FOR YOUR EYES ONLY. Don\'t close this window, this message can\'t be displayed again.'))
|
||||
.removeClass('hidden');
|
||||
.removeClass('hidden');
|
||||
// Discourage cloning (as it can't really be prevented).
|
||||
this.cloneButton.addClass('hidden');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue