mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-04 10:19:25 +02:00
Ajax load php pages only
This commit is contained in:
parent
8e141ecb46
commit
e3d046974f
1 changed files with 1 additions and 1 deletions
|
@ -74,7 +74,7 @@ $(function() {
|
||||||
|
|
||||||
$(window).bind('hashchange', function(){
|
$(window).bind('hashchange', function(){
|
||||||
newHash = window.location.hash.substring(1);
|
newHash = window.location.hash.substring(1);
|
||||||
if (newHash && newHash.indexOf("prettyPhoto") != 0) {
|
if (newHash && newHash.indexOf("prettyPhoto") != 0 && newHash.indexOf(".php") > -1) {
|
||||||
loadContentPage(jsWebPath + '/' + newHash);
|
loadContentPage(jsWebPath + '/' + newHash);
|
||||||
};
|
};
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue