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:
parent
ce1191e97e
commit
2de4417058
8 changed files with 80 additions and 96 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue