1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-04 10:19:25 +02:00

Add link to license on upload form

Add option to remove grid view from catalog favorites at homepage
This commit is contained in:
Afterster 2016-02-28 10:07:52 +01:00
parent ce1191e97e
commit 2de4417058
8 changed files with 80 additions and 96 deletions

View file

@ -442,3 +442,11 @@ function geolocate_user_callback(position) {
var url = jsAjaxUrl + '?page=stats&action=geolocation&latitude=' + position.coords.latitude + '&longitude=' + position.coords.longitude;
$.get(url);
}
function show_selected_license_link(license_select) {
var license = $('#' + license_select + ' option:selected');
var link = license.attr('data-link');
if (link !== undefined) {
window.open(link);
}
}