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

Open external share in new window

Enable share option in community installation
This commit is contained in:
Afterster 2015-02-04 22:54:52 +01:00
parent a7377e562e
commit b2f03a2ab6
2 changed files with 4 additions and 2 deletions

View file

@ -428,7 +428,8 @@ function install_config_use_case($case)
'channel' => 'true', 'channel' => 'true',
'live_stream' => 'true', 'live_stream' => 'true',
'allow_public_registration' => 'false', 'allow_public_registration' => 'false',
'cookie_disclaimer' => 'false' 'cookie_disclaimer' => 'false',
'share' => 'false'
); );
$dbconfig = array( $dbconfig = array(
@ -462,6 +463,7 @@ function install_config_use_case($case)
$trconfig['live_stream'] = 'false'; $trconfig['live_stream'] = 'false';
$trconfig['allow_public_registration'] = 'true'; $trconfig['allow_public_registration'] = 'true';
$trconfig['cookie_disclaimer'] = 'true'; $trconfig['cookie_disclaimer'] = 'true';
$trconfig['share'] = 'true';
$dbconfig['download'] = '0'; $dbconfig['download'] = '0';
$dbconfig['share'] = '1'; $dbconfig['share'] = '1';

View file

@ -188,7 +188,7 @@ function shoverlayclickclose(e) {
} }
function handleShareAction(url) { function handleShareAction(url) {
NavigateTo(url); window.open(url);
$("#sharedialog").dialog("close"); $("#sharedialog").dialog("close");
} }