1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-05 02:39:47 +02:00

Fix few french translation

Avoid player exit confirmation on download links
Fix song removal from user uploader
This commit is contained in:
Afterster 2015-04-21 19:56:36 +02:00
parent db80fcc058
commit a4eafa834d
6 changed files with 43 additions and 32 deletions

View file

@ -471,7 +471,7 @@ function stopBroadcast()
<?php if ($iframed && AmpConfig::get('webplayer_confirmclose') && !$is_share) { ?>
window.parent.onbeforeunload = function (evt) {
if (!$("#jquery_jplayer_1").data("jPlayer").status.paused) {
if (!$("#jquery_jplayer_1").data("jPlayer").status.paused && (document.activeElement === undefined || (document.activeElement.href.indexOf('/batch.php') < 0 && document.activeElement.href.indexOf('/stream.php') < 0))) {
var message = '<?php echo T_('Media is currently playing. Are you sure you want to close') . ' ' . AmpConfig::get('site_title') . '?'; ?>';
if (typeof evt == 'undefined') {
evt = window.event;