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:
parent
db18201236
commit
8e141ecb46
1 changed files with 5 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue