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

Fix Albums and Similars Artists ajax load (fix #375)

This commit is contained in:
Afterster 2014-08-08 16:01:34 +02:00
parent db18201236
commit 8e141ecb46

View file

@ -34,9 +34,11 @@ $(function() {
var link = $(this).attr("href");
if (link != "" && link.indexOf("javascript:") != 0 && link != "#" && link != undefined && $(this).attr("onclick") == undefined && $(this).attr("rel") != "nohtml" && $(this).attr("target") != "_blank") {
if ($(this).attr("rel") != "prettyPhoto") {
var href = $(this).attr("href");
window.location.hash = href.substring(jsWebPath.length + 1);
return false;
// Ajax load Ampache pages only
if (link.indexOf(jsWebPath) > -1) {
window.location.hash = link.substring(jsWebPath.length + 1);
return false;
}
} else {
window.location.hash = $(this).attr("rel");
return false;